bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] git-version-gen: include command name in one more diagnostic


From: Bruce Korb
Subject: Re: [PATCH] git-version-gen: include command name in one more diagnostic
Date: Mon, 03 Jan 2011 18:07:00 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11

On 01/03/11 16:13, Eric Blake wrote:
> $ /bin/sh -c 'v=`nonesuch` 2>/dev/null'
> nonesuch: not found
> $ /bin/sh -c 'v=`(nonesuch) 2>/dev/null`'
> $

Just for grins, how about trying:

/bin/sh -c 'v=`exec 2>/dev/null;nonesuch`'

I think it works for me on a Sun box:

 sunfall_bkorb $ /bin/sh -c '`nonesuch`' 2>/dev/null
 sunfall_bkorb $ /bin/sh -c '`nonesuch` 2>/dev/null'
/bin/sh: nonesuch: not found
 sunfall_bkorb $ /bin/sh -c '`exec  2>/dev/null;nonesuch`'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]