Re: [gentoo-user] Help deciphering the which(1) man page

2005-04-09 Thread Maxim Vexler
On Apr 9, 2005 4:41 PM, Richard Fish <[EMAIL PROTECTED]> wrote: > Maxim Vexler wrote: > > >I can't quite understand the purpose of this "(alias; declare -f)" > >expression. > > > > > > If you don't have any aliases or functions defined in your shell, you > won't see anything from running 'alias;

Re: [gentoo-user] Help deciphering the which(1) man page

2005-04-09 Thread Richard Fish
Maxim Vexler wrote: >I can't quite understand the purpose of this "(alias; declare -f)" expression. > > If you don't have any aliases or functions defined in your shell, you won't see anything from running 'alias; declare -f'. An example: ~ > alias e='echo' ~ > e foo foo ~ > f() { > echo "fu

[gentoo-user] Help deciphering the which(1) man page

2005-04-09 Thread Maxim Vexler
Hello to everyone. At the risk of RTFM. I've been reading the man page of which(1), where in the recommendations section for alias (on sh) they have this code : = which () { (alias; declare -f) | /usr/bin/which --tty-only --