[pve-devel] perl pipe problems
Stefan Priebe - Profihost AG
s.priebe at profihost.ag
Mon Oct 29 09:00:43 CET 2012
Am 29.10.2012 07:54, schrieb Dietmar Maurer:
> I tried to use option ‘pipefail’ but get:
>
> # perl -e 'system("set -o pipefail;false | true");print $?>>8,"\n"'
>
> set: 1: Illegal option -o pipefail
>
> Any ideas?
This is due to the fact that debian uses dash as /bin/sh default since
squeeze and dash does not support pipefail. That's why i mapped /bin/sh
to bash again on all of my debian systems.
Another idea could be:
system( "bash", "-c", @args );
Another idea you can try is set the shell via:
$ENV{SHELL}
Greets,
Stefan
More information about the pve-devel
mailing list