summaryrefslogtreecommitdiff
path: root/doc/bash.0
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-12-12 22:10:58 -0500
committerChet Ramey <chet.ramey@case.edu>2011-12-12 22:10:58 -0500
commit510e20a25241adfd62cc3b6e7fa9b209658e7bc7 (patch)
tree2b735c7bea02c5b80e08098657060106f779f02d /doc/bash.0
parentadc6cff53c2ef3341775f590ce36f96a28ea73f0 (diff)
downloadbash-510e20a25241adfd62cc3b6e7fa9b209658e7bc7.tar.gz
commit bash-20101210 snapshot
Diffstat (limited to 'doc/bash.0')
-rw-r--r--doc/bash.028
1 files changed, 17 insertions, 11 deletions
diff --git a/doc/bash.0 b/doc/bash.0
index 36ef16b3..b9adbee9 100644
--- a/doc/bash.0
+++ b/doc/bash.0
@@ -3108,12 +3108,16 @@ RREEAADDLLIINNEE
"!_n" history expansion had been specified.
yyaannkk--llaasstt--aarrgg ((MM--..,, MM--__))
Insert the last argument to the previous command (the last word
- of the previous history entry). With an argument, behave
+ of the previous history entry). With a numeric argument, behave
exactly like yyaannkk--nntthh--aarrgg. Successive calls to yyaannkk--llaasstt--aarrgg
- move back through the history list, inserting the last argument
- of each line in turn. The history expansion facilities are used
- to extract the last argument, as if the "!$" history expansion
- had been specified.
+ move back through the history list, inserting the last word (or
+ the word specified by the argument to the first call) of each
+ line in turn. Any numeric argument supplied to these successive
+ calls determines the direction to move through the history. A
+ negative argument switches the direction through the history
+ (back or forward). The history expansion facilities are used to
+ extract the last argument, as if the "!$" history expansion had
+ been specified.
sshheellll--eexxppaanndd--lliinnee ((MM--CC--ee))
Expand the line as the shell does. This performs alias and his-
tory expansion as well as all of the shell word expansions. See
@@ -5131,10 +5135,11 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
Expressions may be combined using the following operators,
listed in decreasing order of precedence. The evaluation
- depends on the number of arguments; see below.
+ depends on the number of arguments; see below. Operator prece-
+ dence is used when there are five or more arguments.
!! _e_x_p_r True if _e_x_p_r is false.
(( _e_x_p_r ))
- Returns the value of _e_x_p_r. This may be used to override
+ Returns the value of _e_x_p_r. This may be used to override
the normal precedence of operators.
_e_x_p_r_1 -aa _e_x_p_r_2
True if both _e_x_p_r_1 and _e_x_p_r_2 are true.
@@ -5151,13 +5156,14 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
null.
2 arguments
If the first argument is !!, the expression is true if and
- only if the second argument is null. If the first argu-
- ment is one of the unary conditional operators listed
- above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the expression is
+ only if the second argument is null. If the first argu-
+ ment is one of the unary conditional operators listed
+ above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the expression is
true if the unary test is true. If the first argument is
not a valid unary conditional operator, the expression is
false.
3 arguments
+ The following conditions are applied in the order listed.
If the second argument is one of the binary conditional
operators listed above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the
result of the expression is the result of the binary test
@@ -5461,4 +5467,4 @@ BBUUGGSS
-GNU Bash-4.2 2010 September 6 BASH(1)
+GNU Bash-4.2 2010 December 6 BASH(1)