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

DAUBIGNE Sebastien - BOR ( SDaubigne@bordeaux-bersol.sema.slb.com ) SDaubigne at bordeaux-bersol.sema.slb.com
Thu Jul 4 06:26:34 CDT 2002


"True" is a bourne-shell script that does nothing (see /usr/bin/true).
Its purpose is to return a no-error code (0).

I don't understand what is "sh -c true" made for.
---
Sebastien DAUBIGNE
sdaubigne at bordeaux-bersol.sema.slb.com <mailto:sebastien.daubigne at sema.fr>
- (+33)5.57.26.56.36
SchlumbergerSema - SGS/DWH/Pessac


	-----Message d'origine-----
	De:	Foong, Tzeweng [SMTP:Tzeweng.Foong at team.telstra.com]
	Date:	jeudi 4 juillet 2002 10:30
	:	Sun Help
	Objet:	[SunHELP] What is this "sh -c true" used for?

	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
	_______________________________________________
	SunHELP maillist  -  SunHELP at sunhelp.org
	http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list