Opened 16 years ago

Closed 16 years ago

#2212 closed enhancement (fixed)

Perl missing from version-check.sh

Reported by: Matthew Burgess Owned by: lfs-book@…
Priority: normal Milestone: 7.0
Component: Book Version: SVN
Severity: trivial Keywords:
Cc:

Description

Fairly trivial, but Perl is mentioned as a host pre-req, but is not checked for in version-check.sh (preface/iv). The following works for me, although I don't know how portable it is across distros/Perl versions:

echo -n "Perl: "; perl --version | head -2 | tail -1 | awk '{print $4}';

Change History (2)

comment:1 by dnicholson@…, 16 years ago

This is sort of the more perl-y way to do it:

echo `eval $(perl -V:version); echo Perl: $version`

Or even just perl -V:version .

comment:2 by bdubbs@…, 16 years ago

Resolution: fixed
Status: newclosed

Fixed in revision 8563.

Note: See TracTickets for help on using tickets.