exporting variable via variable requires more quotes than normal

2006-06-27 Thread Mike Frysinger
is this a bug or feature ? i never know with bash :) $ echo "HI THERE" > foo $ export f=$( pgpqgaD69pcQP.pgp Description: PGP signature ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Re: exporting variable via variable requires more quotes than normal

2006-06-27 Thread Chet Ramey
Mike Frysinger wrote: > is this a bug or feature ? i never know with bash :) > > $ echo "HI THERE" > foo > $ export f=$( $ echo $f > HI THERE > $ export v=f > $ export ${v}=$( $ echo $f > HI > $ export ${v}="$( $ echo $f > HI THERE It's a feature. Since `export' and its sibling builtins essenti

while do done has problems with global variables

2006-06-27 Thread Joern . Rink
Configuration Information [Automatically generated, do not change]: Machine: s390 OS: linux Compiler: gcc -I/usr/src/packages/BUILD/bash-2.05b Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='s390' -DCONF_OSTYPE='linux' -DCONF_MACHTYPE='s390-ibm-linux' -DCONF_VENDOR='ibm' -DSHELL -DHAVE_C

Re: while do done has problems with global variables

2006-06-27 Thread Paul Jarc
[EMAIL PROTECTED] wrote: >ls -1 | while read f; do Read entry E4 in the bash FAQ. paul ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash