Re: Missing character when using ${VAR:1} and length(VAR)==1

2007-09-20 Thread Stephane Chazelas
On Fri, Sep 21, 2007 at 05:16:03AM +0200, Jan Schampera wrote: > Chet Ramey wrote: > >>> Description: >>> there is missing a charachter when using the following: >>> # TT="oo"; echo "l${TT:1}l" >>> lol >>> # TT="o"; echo "l${TT:1}l" >>> l >> I can't reproduce

Re: Missing character when using ${VAR:1} and length(VAR)==1

2007-09-20 Thread Jan Schampera
Chet Ramey wrote: Description: there is missing a charachter when using the following: # TT="oo"; echo "l${TT:1}l" lol # TT="o"; echo "l${TT:1}l" l I can't reproduce this; I get `ll' from the second expansion. I can't reproduce it on a 2.05b: $ TT="o

Re: Missing character when using ${VAR:1} and length(VAR)==1

2007-09-20 Thread Chet Ramey
Lauffher, Wolfgang wrote: > From: root > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux > Compiler: gcc -I/usr/src/packages/BUILD/bash-3.1 > -L/usr/src/packages/BUILD/bash-3.1/../readline-5.1 > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE

Re: "[ -n ${emptyvariable} ]" returns success

2007-09-20 Thread Jonathan Kamens
On 09/20/2007 07:46 PM, Paul Jarc wrote: [EMAIL PROTECTED] wrote: foo= [ -n ${foo} ] && echo true Prints "true". That's the correct behavior. OK, thanks for the explanation. It makes sense, although I think it's just a little gross. ;-) To avoid pitfalls

Re: "[ -n ${emptyvariable} ]" returns success

2007-09-20 Thread Paul Jarc
[EMAIL PROTECTED] wrote: > foo= > [ -n ${foo} ] && echo true > > Prints "true". That's the correct behavior. > Should probably print an error, since after the command is > expanded there are only three arguments, so the final ] should > be interpreted as the ar

"[ -n ${emptyvariable} ]" returns success

2007-09-20 Thread jik
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPAC

Re: Bash Commander: new project

2007-09-20 Thread Serge Vakulenko
> I think it looks very much like midnight commander and other file > manager applications. How does this differentiate itself? Bash commander is not a separate application, like others. It is the same good old bash, with added functionality. About 2klines of source code, or about 20kbytes of bin

Re: Bash Commander: new project

2007-09-20 Thread Bob Proulx
Serge Vakulenko wrote: > What do you think about extending bash functionality with visual > two-panel file browser? > Here is a new project to implement this: http://bashc.wiki.sourceforge.net/ > Critique and suggestions are welcome. I think it looks very much like midnight commander and other fil

Bash Commander: new project

2007-09-20 Thread Serge Vakulenko
Hello all, What do you think about extending bash functionality with visual two-panel file browser? Here is a new project to implement this: http://bashc.wiki.sourceforge.net/ Critique and suggestions are welcome. ___ Best wishes, Serge

Missing character when using ${VAR:1} and length(VAR)==1

2007-09-20 Thread Lauffher, Wolfgang
From: root Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux Compiler: gcc -I/usr/src/packages/BUILD/bash-3.1 -L/usr/src/packages/BUILD/bash-3.1/../readline-5.1 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux' -DCONF_

[EMAIL PROTECTED]

2007-09-20 Thread Karsten Sperling
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash