-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Ken Brown on 4/30/2009 5:27 AM: > A build script I was running failed because it had a command of the form > 'eval foo=bar time <command>'. Here's a simple test case:
This is not cygwin specific. > > $ eval foo=bar time true > -bash: time: command not found > > It works fine without foo=bar: > > $ eval time true > > real 0m0.060s time is a special case. It is BOTH a bash reserved word and an external command (assuming you've installed the external package). The difference is what syntax you use. $ time true # bash builtin $ time foo=bar true # bash builtin $ \time true # external $ foo=bar time true # external Adding eval in the mix does not change the syntax qualities; time is only treated as the bash reserved word if it occurs FIRST in the pipeline (no variable assignments may precede it). - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkn5keYACgkQ84KuGfSFAYCzuACgx8oyaFaTBZpPChZDTVmLTdxg caIAoNZtWZ0MUazOs5K+H9YfKdxochOi =tEAe -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/