[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The usage of [[ (not with if)
From: |
Andreas Schwab |
Subject: |
Re: The usage of [[ (not with if) |
Date: |
Wed, 04 Aug 2010 17:28:28 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Bob Proulx <bob@proulx.com> writes:
> Neither of those produce any output.
>
> $ printf '%d\n' ""
> 0
Since the command substitution is not quoted the result of the expansion
is subject to field splitting, thus expands to nothing at all instead of
a single empty argument.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."