Re: some variable level issues

2008-07-01 Thread pk
On Tuesday 1 July 2008 05:22, Chris F.A. Johnson wrote: > var=${var%.} ITYM var=${var%' .'}

Re: some variable level issues

2008-07-01 Thread Pierre Gaston
2008/7/1 pk <[EMAIL PROTECTED]>: > On Tuesday 1 July 2008 05:22, Chris F.A. Johnson wrote: > >> var=${var%.} > > ITYM > > var=${var%' > .'} that would defeat the purpose of keeping the trailing newlines of file, and would just be wrong if the file doesn't have a trailing newline

Re: some variable level issues

2008-07-01 Thread pk
On Tuesday 1 July 2008 09:51, Pierre Gaston wrote: > 2008/7/1 pk <[EMAIL PROTECTED]>: >> On Tuesday 1 July 2008 05:22, Chris F.A. Johnson wrote: >> >>> var=${var%.} >> >> ITYM >> >> var=${var%' >> .'} > > that would defeat the purpose of keeping the trailing newlines of > file, and would just be

Re: process substition and "source"

2008-07-01 Thread Chet Ramey
Poor Yorick wrote: In the following example, I expected the commands in the here-documents to be interpreted in the current shell, but it seems they weren't. Is it my misunderstanding, a feature, or a bug? They're not interpreted in the current shell; in versions of bash up to and including ba

Re: bash --noediting killed by O_NONBLOCK

2008-07-01 Thread Chet Ramey
Glynn Clements wrote: Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: i686-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DL