* Please tell me.
@ 1995-09-20 14:23 Akira Funahashi / 舟橋啓
1995-09-20 14:41 ` Zefram
0 siblings, 1 reply; 2+ messages in thread
From: Akira Funahashi / 舟橋啓 @ 1995-09-20 14:23 UTC (permalink / raw)
To: zsh-users
I have a question about zsh's alias.
When I use 'which' command to my aliased command,
It behaves like this.
% alias ls=ls-F
% which ls
ls: aliased to ls -F
But if I want to know what 'ls' I'm using, in tcsh,
I type 'which \ls' and this worked just what I want to know.
(tcsh)% which \ls
/bin/ls
But in zsh, it doesn't work like this.
% which \ls
ls: aliased to ls -F
What shoud I do??? I'm using zsh-2.6-beta8.
-------
Akira Funahashi
Amano laboratory, Dept. of computer science
Keio University, JAPAN
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Please tell me.
1995-09-20 14:23 Please tell me Akira Funahashi / 舟橋啓
@ 1995-09-20 14:41 ` Zefram
0 siblings, 0 replies; 2+ messages in thread
From: Zefram @ 1995-09-20 14:41 UTC (permalink / raw)
To: Akira Funahashi / 舟橋; +Cc: Z Shell users mailing list
>But if I want to know what 'ls' I'm using, in tcsh,
>I type 'which \ls' and this worked just what I want to know.
>But in zsh, it doesn't work like this.
Use the -p option to which in order to force a path search:
% alias ls='ls -F'
% which ls
ls: aliased to 'ls -F'
% which -p ls
/bin/ls
-zefram
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-09-20 14:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-09-20 14:23 Please tell me Akira Funahashi / 舟橋啓
1995-09-20 14:41 ` Zefram
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).