Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
- To: "MLUG Members" <EMAIL:PROTECTED>
- Subject: Re: [MLUG] which command in bash and elsewhere
- From: "Jonathan King" <EMAIL:PROTECTED>
- Date: Sat, 3 Nov 2007 09:18:06 -0400
- Delivery-date: Sat, 03 Nov 2007 08:18:25 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=lkssvZEaZhKt4CYtnN9NhJ7cZ4kWhCex2bX5bVkQMMM=; b=aUJ2GLIEh7zpTw5pMXMWG9Uj+0g+EthyNA2ExDvyXp6+L+9LS+BL8H0B1RWKDUquKw2c3ZUx86P60tytJap3uB0nduhyzlnUESbctjlgJN2jgLoDG/V6DT4b4ynkJkgjMw0fIRl52x2rpu6EDEeWXbAVCROKXxsI7d9x6NckdWM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KP6JfJ1cFza95Gs47BHykSGVem2XAF1g1gs6/HbL0/f7g4jDshu0n5XzKPikBqPGTdct8GpV2VwMCEL75qLFm2+mEAC68oN2qn6eP6+x0y/hdu8NnI45nurIMeeiCzpRlEiqeoJxJFG39gJ81rrUzd6W0k4kbk/2aYSsc2tDqwI=
- Envelope-to: EMAIL:PROTECTED
- In-reply-to: <EMAIL:PROTECTED>
- References: <EMAIL:PROTECTED> <EMAIL:PROTECTED> <EMAIL:PROTECTED> <EMAIL:PROTECTED> <EMAIL:PROTECTED> <EMAIL:PROTECTED>
- Reply-to: MLUG Members <EMAIL:PROTECTED>
- Sender: EMAIL:PROTECTED
On 11/3/07, Mike Miller <EMAIL:PROTECTED> wrote:
>
> 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 will check on that, but I am not optimistic.
> 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.
If which isn't a built-in and I haven't lost all of my brain cells
yet, it just gets argc and argv, so it can't tell who called it, which
means it can't say to itself "ah; bash called me so I should point out
that in this case the user is likely to get a built-in for 'time'" If
it were a built-in, I think it could scan the names of the other
built-ins and figure this out.
jking
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members