Re: Is this a bug in [[ -f ]]?

2011-08-19 Thread suvayu ali
Hello Eric, On Fri, Aug 19, 2011 at 5:04 PM, Eric Blake wrote: > On 08/19/2011 08:45 AM, Suvayu Ali wrote: >> >> I am trying to test if a file exists and then source it. My problem is >> the test succeeds even if the variable is empty! If I pass no argument >> at all, it still succeeds. To give y

Re: Typo in po/de.po

2011-08-19 Thread Chet Ramey
On 8/18/11 8:03 AM, Michael Stummvoll wrote: > Hello, > Hope i am right here with that. > Nothing special, but noticed this just now. Patch is attached. Thanks. Please filter translation changes through the GNU Translation project. Chet -- ``The lyf so short, the craft so long to lerne.'' - Ch

Re: Is this a bug in [[ -f ]]?

2011-08-19 Thread Eric Blake
On 08/19/2011 08:45 AM, Suvayu Ali wrote: I am trying to test if a file exists and then source it. My problem is the test succeeds even if the variable is empty! If I pass no argument at all, it still succeeds. To give you an example: $ unset bla $ [ -f $bla ]&& echo yes yes $ [ -f ]&& echo y

Re: Is this a bug in [[ -f ]]?

2011-08-19 Thread Suvayu Ali
Hi everyone, Greg Wooledge eeg.ccf.org> writes: > > On Thu, Aug 18, 2011 at 12:35:37PM -0400, Steven W. Orr wrote: > > lrwxrwxrwx. 1 sorr fc5 Aug 18 08:48 err -> errio > > -rw-rw-r--. 1 sorr fc 3816 Aug 18 08:48 errio > > > *836 > [[ -f err ]] > > 837 > echo $? # BAD answer >

Re: conditional aliases are broken

2011-08-19 Thread Chet Ramey
On 8/19/11 6:38 AM, Roman Rakus wrote: > On 08/18/2011 07:57 PM, Eric Blake wrote: >> On 08/18/2011 08:53 AM, Roman Rakus wrote: >>> On 08/18/2011 04:38 PM, Sam Steingold wrote: how do I write a function that would print the same as $ \ls | cat >>> f3(){ printf "%s\n" "$@"; } >> >> "\n" l

Re: Typo in po/de.po

2011-08-19 Thread Michael Stummvoll
sorry, i forgot something. 2531c2531 < "Führt eine eingebeute Shell Funktionen aus.\n" --- > "Führt eine eingebaute Shell Funktionen aus.\n" 2539c2539 < "Der Rückgabewert der eingebauten Schellfunkrion oder Falsch, wenn\n" --- > "Der Rückgabewert der eingebauten Shell Funktion oder Fal

Typo in po/de.po

2011-08-19 Thread Michael Stummvoll
Hello, Hope i am right here with that. Nothing special, but noticed this just now. Patch is attached. I am not registered in this list, so please cc replys to me. Greetings, Michael 2539c2539 < "Der Rückgabewert der eingebauten Schellfunkrion oder Falsch, wenn\n" --- > "Der Rückgabewer

Re: conditional aliases are broken

2011-08-19 Thread Roman Rakus
On 08/18/2011 07:57 PM, Eric Blake wrote: On 08/18/2011 08:53 AM, Roman Rakus wrote: On 08/18/2011 04:38 PM, Sam Steingold wrote: how do I write a function that would print the same as $ \ls | cat f3(){ printf "%s\n" "$@"; } "\n" looks funny in shell; even though POSIX requires that "\n" doe