This is the mail archive of the
mailing list for the Cygwin project.
Re: bash -c error
-----BEGIN PGP SIGNED MESSAGE-----
According to Krzysztof Duleba on 1/10/2006 7:14 AM:
> This was just a minimal test case.
> $ bash -c time ls
> Segmentation fault (core dumped)
That is equivalent to 'bash -c time', except that $0 is set to "ls"
instead of "bash" or "time" for the duration of the command (in other
words, the same crash as before, because you invoked time without arguments).
> $ bash -c 'time ls'
Much better - now you are actually giving time an argument. Again, in
bash 3.0, you should not use time without a valid argument (at least, not
until I can roll a bash 3.0-15 that works around the coredump). Or you
could upgrade to bash 3.1 (but remember to also use a current snapshot and
readline 5.1), where the problem has been fixed upstream.
Life is short - so eat dessert first!
Eric Blake firstname.lastname@example.org
volunteer cygwin bash maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html