diff options
author | jilles <jilles@FreeBSD.org> | 2014-11-07 21:30:16 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2014-11-07 21:30:16 +0000 |
commit | 2b489b298092c88713512b9b44f3d242133298b7 (patch) | |
tree | b13ef965dc7186c6a68b6b2ca727a4bdac3e6b00 /bin/sh/sh.1 | |
parent | ac080cfd21ace747b4877a8cb74de59bca709072 (diff) | |
download | FreeBSD-src-2b489b298092c88713512b9b44f3d242133298b7.zip FreeBSD-src-2b489b298092c88713512b9b44f3d242133298b7.tar.gz |
sh(1): Mention portability issue with shifting zero positional parameters.
Per Austin Group issue #459, shifting zero positional parameters may or may
not be considered an operand error (which causes the shell to exit in most
cases).
Diffstat (limited to 'bin/sh/sh.1')
-rw-r--r-- | bin/sh/sh.1 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index 47b1b36..c770aca 100644 --- a/bin/sh/sh.1 +++ b/bin/sh/sh.1 @@ -32,7 +32,7 @@ .\" from: @(#)sh.1 8.6 (Berkeley) 5/4/95 .\" $FreeBSD$ .\" -.Dd September 21, 2014 +.Dd November 7, 2014 .Dt SH 1 .Os .Sh NAME @@ -2522,7 +2522,8 @@ and so on, decreasing the value of .Li $# by one. -If there are zero positional parameters, shifting does not do anything. +For portability, shifting if there are zero positional parameters +should be avoided, since the shell may abort. .It Ic test A built-in equivalent of .Xr test 1 . |