bug-bash
[Top][All Lists]
Advanced

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

Re: `printf -v foo ""` does not set foo=


From: Andreas Schwab
Subject: Re: `printf -v foo ""` does not set foo=
Date: Mon, 17 Jun 2013 09:29:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Linda Walsh <bash@tlinx.org> writes:

> I have a feeling this would be hard to fix, since how can printf
> tell the difference between
>     printf -v foo ""
> and
>     printf -v foo
> ??

The latter has $# -eq 2.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



reply via email to

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