[pve-devel] perl pipe problems
    Alexandre DERUMIER 
    aderumier at odiso.com
       
    Mon Oct 29 10:35:39 CET 2012
    
    
  
Oh, yes, you are right
root at kvmtest1:~# ls -lah /bin/sh
lrwxrwxrwx 1 root root 4 Mar 21  2012 /bin/sh -> dash
#echo "dash    dash/sh boolean false" | debconf-set-selections ; dpkg-reconfigure --frontend=noninteractive dash
root at kvmtest1:~# ls -lah /bin/sh
lrwxrwxrwx 1 root root 4 Oct 29 10:35 /bin/sh -> bash
----- Mail original ----- 
De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
À: pve-devel at pve.proxmox.com 
Envoyé: Lundi 29 Octobre 2012 09:00:43 
Objet: Re: [pve-devel] perl pipe problems 
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 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 
    
    
More information about the pve-devel
mailing list