Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
On Sat, 3 Nov 2007, Jonathan King wrote:
Ooh! One of my pet peeves! I hate it when I can do this:
$ which time
/usr/bin/time
$ time -V
-bash: -V: command not found
EMAIL:PROTECTED bash!
I really think bash should have "which" as a built-in, so it can tell
you when it's hosing you over and maybe do this:
$ which time
/usr/bin/time shadowed by bash function "time"
There's another situation I run into that's similarly annoying, but I
guess it's too late for me to remember what it is...
Tell us if you remember because that was a good one. In tcsh, which I am
in the process of abandoning in favor of bash, you don't get that problem.
It always tells you correctly which command you are getting - alias,
builtin, etc. I thought bash could be configured to do this correctly,
but maybe I'm wrong. I can't find info on that right now. "man which"
does give some pointers on use of aliases for "which," but I don't know if
that solves this problem. "which" can definitely understand aliases but
maybe not shell built-ins.
Mike
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members