[Israel.pm] system() platform dependant issue

Yuval Yaari yuval at windax.com
Sat Sep 9 17:13:52 PDT 2006


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?

  ~Y



More information about the Perl mailing list