[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Freeze exception request: nama



On Sat, Oct 23, 2010 at 12:06:52AM +0200, Mehdi Dogguy wrote:
> On 10/22/2010 08:55 PM, Joel Roth wrote:
> > Hi Mehdi / Release Team
> > 
> > I am resending this.
> > 
> 
> I didn't receive the first one and I don't know why. Anyway…
> 
> > I need to make a one-line patch to nama
> > to fix a critical shell-syntax issue 
> > for default squeeze installation 
> > with /bin/dash as system shell.
> > 
> > The current syntax is incompatible with dash.
> > c.f. Bug#599693.
> > 
> 
> I might be on crack (it's late here :)) but did you test the following?
> 
> perl -e "system('cat >/dev/null 2>&1 &')==0 or print qq(command failed: $?)"

That works, but not the (admittedly arcane and cargo-culted) syntax Nama 
has used:

perl -e "system('cat 2>&1>/dev/null &')==0 or print qq(command failed: $?)"
sh: Syntax error: redirection unexpected

> Regards,
> 
> -- 
> Mehdi Dogguy مهدي الدڤي
> http://dogguy.org/
-- 
Joel Roth


Reply to: