[SunHELP] What is this "sh -c true" used for?


Thu Jul 4 03:30:26 CDT 2002


Hello all,

I had a peep into a shell script and I did not understand it!. 
Hope you guys can shed some light on what it is doing. The 
shell script installs some perl modules. but, I am not 
understanding what those "/bin/sh -c true" lines do?

Please enlighten me!!

Attached below are the first few lines from the shell script.
-----------------------------------------
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/usr/bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503 \
	-MExtUtils::MakeMaker=Version_check \
	-e "Version_check('5.4302')"
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/bin/sh -c true
/usr/bin/perl -we '%m=@ARGV;for (keys %m){'  -e 'next if -e $m{$_} && -M
$m{$_} < -M $_ && -M $m{$_} < -M "Makefile";'  -e 'print "Manifying
$m{$_}\n";'  -e 'system(qq[$^X ].q["-I/usr/perl5/5.00503/sun4-solaris"
"-I/usr/perl5/5.00503" /usr/local/bin/pod2man ].qq[$_>$m{$_}])==0 or warn
"Couldn\047t install $m{$_}\n";'  -e 'chmod(oct(644)), $m{$_} or warn "chmod
644 $m{$_}: $!\n";}' \
Parser.pm \
blib/man3/HTML::Parser.3 \
lib/HTML/Entities.pm \
blib/man3/HTML::Entities.3 \
lib/HTML/Filter.pm \
blib/man3/HTML::Filter.3 \
lib/HTML/HeadParser.pm \
blib/man3/HTML::HeadParser.3 \
lib/HTML/TokeParser.pm \
blib/man3/HTML::TokeParser.3 \
lib/HTML/LinkExtor.pm \
blib/man3/HTML::LinkExtor.3
/bin/sh -c true
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv



More information about the SunHELP mailing list