diff options
| author | Jilles Tjoelker <jilles@FreeBSD.org> | 2013-07-03 21:22:47 +0000 |
|---|---|---|
| committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2013-07-03 21:22:47 +0000 |
| commit | 42ece3b23e727b7918fd843ef3d3c945a6780a79 (patch) | |
| tree | cebd7cbdc6b840cbbcead66448afc2d00c772c4b /bin | |
| parent | 38cea98d2c3fc48ee183b9853d9c96dd783b1bd8 (diff) | |
Notes
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/sh/sh.1 | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1 index 3809cf5c389c..3412791861e7 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 November 5, 2011 +.Dd March 24, 2013 .Dt SH 1 .Os .Sh NAME @@ -1061,6 +1061,9 @@ A subshell environment may be implemented as a child process or differently. If job control is enabled in an interactive shell, commands grouped in parentheses can be suspended and continued as a unit. .Pp +For compatibility with other shells, +two open parentheses in sequence should be separated by whitespace. +.Pp The second form never forks another shell, so it is slightly more efficient. Grouping commands together this way allows the user to @@ -1604,6 +1607,16 @@ and .Ic times returns information about the same process if they are the only command in a command substitution. +.Pp +If a command substitution of the +.Li $( +form begins with a subshell, +the +.Li $( +and +.Li ( +must be separated by whitespace +to avoid ambiguity with arithmetic expansion. .Ss Arithmetic Expansion Arithmetic expansion provides a mechanism for evaluating an arithmetic expression and substituting its value. |
