mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
unposted: typo plus rephrase of alias quoting bit
This commit is contained in:
parent
e27a65dd6c
commit
eff9d597f3
2 changed files with 11 additions and 7 deletions
|
@ -1,5 +1,8 @@
|
|||
2010-10-27 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* unposted: Doc/Zsh/grammar.yo: typo pointed out by
|
||||
Štěpán plus slight rephrasing.
|
||||
|
||||
* 28375: Doc/Zsh/grammar.yo: clarify how to quote aliases from
|
||||
expansion.
|
||||
|
||||
|
@ -13791,5 +13794,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.5115 $
|
||||
* $Revision: 1.5116 $
|
||||
*****************************************************
|
||||
|
|
|
@ -480,12 +480,13 @@ may be defined using the tt(-g) option to that builtin.
|
|||
Alias expansion is done on the shell input before any other expansion
|
||||
except history expansion. Therefore, if an alias is defined for the
|
||||
word tt(foo), alias expansion may be avoided by quoting part of the
|
||||
word, e.g. tt(\foo). But there is nothing to prevent an alias being
|
||||
defined for tt(\foo) as well. For use with completion, which would
|
||||
remove an initial backslash following by a character that isn't special,
|
||||
it may be more convenient to quote the word by starting with a single
|
||||
quote, i.e. tt('foo); completion will automatically add the trailing
|
||||
single quote.
|
||||
word, e.g. tt(\foo). Any form of quoting works, although there is
|
||||
nothing to prevent an alias being defined for the quoted form such as
|
||||
tt(\foo) as well. For use with completion, which would remove an
|
||||
initial backslash followed by a character that isn't special, it may be
|
||||
more convenient to quote the word by starting with a single quote,
|
||||
i.e. tt('foo); completion will automatically add the trailing single
|
||||
quote.
|
||||
|
||||
There is a commonly encountered problem with aliases
|
||||
illustrated by the following code:
|
||||
|
|
Loading…
Reference in a new issue