[Israel.pm] system() platform dependant issue
choo at actcom.co.il
Sat Sep 9 16:23:42 PDT 2006
don't put your foot in your mouth.
symlinking /bin/sh to something that is not compatible with bourne shell
is not posix.
if you changed /bin/sh on any of your machines, you've done something
that no responsible sys admin would ever do. all scripts supplied with
unix systems rely on /bin/sh to parse the syntax of bourne shell
On Sun, 2006-09-10 at 02:13 +0200, Yuval Yaari wrote:
> guy keren wrote:
> > it doesn't matter. when perl runs system(), it uses sh, not tcsh.
> > no need to argue. check it and you'll see.
> Of course it does matter!
> /bin/sh may be a symlink (it's pretty common, you know).
> I'm a bash fiend, so this would work for me:
> yuval at danzig ~ $ ls -l /bin/sh
> lrwxrwxrwx 1 root root 4 Apr 18 15:19 /bin/sh -> bash
> But were I a tcsh fiend, /bin/sh would be linked to tcsh, and then I'd
> get the same error.
> I wonder if /bin/sh is a symlink on Solaris, too?
> Perl mailing list
> Perl at perl.org.il
More information about the Perl