bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Andreas Schwab
Subject: Re: Commands executed with $($prog) do not run properly
Date: Mon, 08 Nov 2010 16:13:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Hans-Georg Bork <address@hidden> 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"
>       $ echo "$($prog)"
> (/test shown)
> (more results in original mail)

Do "set -x" and note the executed commands.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]