These two bash sequences are not equivalent.
Clearly they ought to be. The bash man page apparently agrees.
% export X=x; time --version; unset X
-bash: --version: command not found
% unset X; X=x time --version
GNU time 1.7
Behavior observed in:
GNU bash, version 3.2.33(18)-release (i686-pc-cygwin)
GNU bash, version 3.1.17(1)-release (i686-redhat-linux-gnu)
--
Summary: inconsistent behavior of bash re time
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: doug at cs dot dartmouth dot edu
CC: bug-binutils at gnu dot org
GCC host triplet: What is this? The. "bug writing guidelines" don't say.
http://sourceware.org/bugzilla/show_bug.cgi?id=5896
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils