ael wrote:
> So I suggest that it might be worth moving and modifying that sentence to
> something like
> " Omitting the colon, as in the forms ${parameter-word}, ${parameter=word}
> and ${parameter?word}, results in a test..." ,
> avoiding line breaks in the forms to ensure simple searches succeed.
It's not clear to me where you want to move it to; can you suggest a
patch?
One can do so like this:
git clone git://git.sv.gnu.org/bash.git
cd bash
git checkout devel
# edit/test cycle:
vi doc/bash.1
man doc/bash.1
... repeat as necessary
# get a patch:
git diff >patch
Here's a patch that does some modifying without moving, as a starting
point. It can be applied with "patch -p1 </path/to/patch".
Hope that helps,
Jonathan
diff --git i/doc/bash.1 w/doc/bash.1
index 30487b0d..8c8b1673 100644
--- i/doc/bash.1
+++ w/doc/bash.1
@@ -2718,7 +2718,9 @@ parameter expansion, command substitution, and arithmetic
expansion.
.PP
When not performing substring expansion, using the forms documented below
(e.g., \fB:-\fP),
-\fBbash\fP tests for a parameter that is unset or null. Omitting the colon
+\fBbash\fP tests for a parameter that is unset or null. Omitting the colon,
+as in the forms ${\fIparameter\fP\fB\-\fP\fIword\fP},
+${\fIparameter\fP\fB=\fP\fIwordf\fP}, and ${\fIparameter\fP\fB?\fP\fIword\fP},
results in a test only for a parameter that is unset.
.PP
.PD 0
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]