On Fri, Oct 03, at 11:44 LFS Trac wrote:
> #2212: Perl missing from version-check.sh
> ------------------------------------------+---------------------------------
>  Reporter:  [EMAIL PROTECTED]  |        Owner:  [email protected]
>      Type:  enhancement                   |       Status:  new                
>           
>  Priority:  normal                        |    Milestone:  7.0                
>           
> Component:  Book                          |      Version:  SVN                
>           
>  Severity:  trivial                       |   Resolution:                     
>           
>  Keywords:                                |  
> ------------------------------------------+---------------------------------
> Comment (by [EMAIL PROTECTED]):
> 
>  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` .
> 

And I thought, you disliked perl. :)
Here is a sed version:

echo "Perl: $(perl --version | sed -n '/^This/s/.*v\([^ ]*\).*/\1/p')"

Regards,
Ag.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to