bug-bash
[Top][All Lists]
Advanced

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

Re: Bug or feature: Why does Bash's "printf" define global variables?


From: Andreas Schwab
Subject: Re: Bug or feature: Why does Bash's "printf" define global variables?
Date: Mon, 04 Aug 2014 00:12:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux)

Tim Friske <me@tifr.de> writes:

> my assumption was that Bash's "printf" builtin implicitly defines a local
> variable when used inside a function like so:

Why?  A simple assignment doesn't either, and that's what printf does in
the end.

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."



reply via email to

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