In the last episode (Jun 10), Lowell Gilbert said:
> Dan D Niles <d...@more.net> writes:
> 
> > The which command functions differently between bash and tcsh.  For
> > example, I have ls aliased to do color output and add some other options
> > that I like.  With tcsh, 'which ls' returns 
> > "ls:         aliased to \ls -GFB"; with bash it returns 
> > "/bin/ls".  The tcsh behavior tells you what will be executed when you
> > run ls.  The bash behavior can be achieved in tcsh with 'which \ls', so
> > I think I like the tcsh behavior better.  I could probably write a
> > function in bash that emulates tcsh's builtin which command.
> 
> bash (like most other sh-style shells) has no "which" builtin.  You end up
> running /usr/bin/which.  bash (like most other sh-style shells) does have
> a (rough) equivalent, which is "type".

zsh's which command will prints the output of aliases, and a very
comprehensive completion system, too.  It also supports more csh
features/syntax than bash (good for people used to csh/tcsh).

(d...@dan.13) /home/dan> which ls
ls: aliased to ls -Fa

-- 
        Dan Nelson
        dnel...@allantgroup.com
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to