Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Help command behavior with aliases
- X-seq: zsh-workers 20895
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: Help command behavior with aliases
- Date: Mon, 28 Feb 2005 19:00:35 +0000
- In-reply-to: <787bbe1c05022810143f45e673@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <787bbe1c05022810143f45e673@xxxxxxxxxxxxxx>
On Feb 28, 7:14pm, ( Text in unknown character set UTF-8 not shown ) wrote:
}
} When aliasing a command and running it from CLI, help for the command
} (Escape-H) is called for alias expansion, like in:
}
} % portupgrade zsh (type Esc-H)
} <manpage for nice appears if you do alias portupgrade='nice portupgrade'>
}
} Strange and unpleasant as well. Any reason to keep it this way?
Suppose you have
alias LL='ls -lL'
Do you want run-help to display the man page for "ls", or do you want it
to simply fail because there is no LL command?
However, it's probably possible to rewrite the run-help function so that
it skips command prefixes (coproc, nice, time, etc.) in alias expansions
and displays the help for the following word instead.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author