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;
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
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
--
3 matches
Mail list logo