diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2000-12-04 12:03:25 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2000-12-04 12:03:25 +0000 |
commit | 0db6a3103f2285365476f8bc87638261a4422bb4 (patch) | |
tree | 4d46bca203d3deb62169557402f88d31b2fa187f | |
parent | caa994e1e9e3ab73a0b9ee757a45c5896bf77864 (diff) | |
download | zsh-0db6a3103f2285365476f8bc87638261a4422bb4.tar.gz zsh-0db6a3103f2285365476f8bc87638261a4422bb4.tar.xz zsh-0db6a3103f2285365476f8bc87638261a4422bb4.zip |
$# doc
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Doc/Zsh/params.yo | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 0692d9fed..d71e61a96 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-12-04 Peter Stephenson <pws@csr.com> + + * 13220: Doc/Zsh/params.yo: mention problems with $# e.g. `$#-' + in arithmetic. + 2000-12-03 Clint Adams <schizo@debian.org> * 13216: Doc/Zsh/.distfiles, Doc/Zsh/builtins.yo, diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index c3e8c4679..c8823a442 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -240,7 +240,11 @@ The process ID of the last background command invoked. ) vindex(#) item(tt(#) <S>)( -The number of positional parameters in decimal. +The number of positional parameters in decimal. Note that some confusion +may occur with the syntax tt($#)var(param) which substitutes the length of +var(param). Use tt(${#}) to resolve ambiguities. In particular, the +sequence `tt($#-)var(...)' in an arithmetic expression is interpreted as +the length of the parameter tt(-), q.v. ) vindex(ARGC) item(tt(ARGC) <S> <Z>)( |