[pve-devel] perl pipe problems

Dietmar Maurer dietmar at proxmox.com
Mon Oct 29 10:01:07 CET 2012


OK, hopefully this will fix the issue:

https://git.proxmox.com/?p=pve-common.git;a=commitdiff;h=e0cabd2caad4fd64893b1589ad36824ac0cf61e2


> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Stefan Priebe - Profihost AG
> Sent: Montag, 29. Oktober 2012 09:01
> To: pve-devel at pve.proxmox.com
> Subject: 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