Re: Commands executed with $($prog) do not run properly

2010-11-08 Thread Hans-Georg Bork
Hi, On Mon, 2010-11-08 at 09:49 -0500, Greg Wooledge wrote: > On Mon, Nov 08, 2010 at 03:26:10PM +0100, Hans-Georg Bork wrote: > > if this is true, then please explain the differences between > > $ find /test -type d ! -wholename "/test" > > (/test not shown) > > and > > $ prog='find /test

Re: Commands executed with $($prog) do not run properly

2010-11-08 Thread Andreas Schwab
Hans-Georg Bork writes: > if this is true, then please explain the differences between > $ find /test -type d ! -wholename "/test" > (/test not shown) > and > $ prog='find /test -type d ! -wholename "/test"' > $ echo $prog > find /test -type d ! -wholename "/test" >

Re: Commands executed with $($prog) do not run properly

2010-11-08 Thread Greg Wooledge
On Mon, Nov 08, 2010 at 03:26:10PM +0100, Hans-Georg Bork wrote: > if this is true, then please explain the differences between > $ find /test -type d ! -wholename "/test" > (/test not shown) > and > $ prog='find /test -type d ! -wholename "/test"' > $ echo $prog > find /tes

Re: Commands executed with $($prog) do not run properly

2010-11-08 Thread Hans-Georg Bork
Hi, On Mon, 2010-11-08 at 08:51 -0500, Greg Wooledge wrote: > On Sat, Nov 06, 2010 at 03:09:08AM +0100, Hans-Georg Bork wrote: > > $ prog='find /test -type d ! -wholename "/test"' > > $ echo $prog > > find /test -type d ! -wholename "/test" > > $ echo "$($prog)" > > /test > > /test/c > > /test/b >

Re: Commands executed with $($prog) do not run properly

2010-11-08 Thread Greg Wooledge
On Sat, Nov 06, 2010 at 03:09:08AM +0100, Hans-Georg Bork wrote: > $ prog='find /test -type d ! -wholename "/test"' > $ echo $prog > find /test -type d ! -wholename "/test" > $ echo "$($prog)" > /test > /test/c > /test/b > /test/d > /test/a > $ This is an error in your script, not in bash. You'r

Re: Commands executed with $($prog) do not run properly

2010-11-07 Thread Pierre Gaston
On Sat, Nov 6, 2010 at 6:12 AM, wrote: > 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_VE

Commands executed with $($prog) do not run properly

2010-11-07 Thread Hans-Georg Bork
From: Hans-Georg Bork To: bug-bash@gnu.org, b...@packages.debian.org Subject: Commands ran with $($prog) do not run properly Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_6

Commands executed with $($prog) do not run properly

2010-11-07 Thread hgb
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='ba