Skip to contentSkip to conversation

Remove spurious space in descriptions of PS1, PS2, PS4

PATCH In review Jonathan Nieder 2 participants 2 messages May 2, 2011 – Jul 7, 2011 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20110430220553.GB20433@elie

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

PATCH 1/1 Remove spurious space in descriptions of PS1, PS2, PS4

From: Kalle Olavi Niemitalo <[email protected]>

LANG=C man dash shows:

PS1 The primary prompt string, which defaults to ``$ '', unless
you are the superuser, in which case it defaults to ``# ''.

PS2 The secondary prompt string, which defaults to ``> ''.

PS4 Output before each line when execution trace (set -x) is
enabled, defaults to ``+ ''.

Each of the documented default values has a graphic character and two spaces between the quotation marks. However, the actual default values have only one space, rather than two.

---
Kalle Olavi Niemitalo wrote[1]:

Quoted 1 line

Here's the diff against 0.5.5.1-7.4.

Thanks. Looking at the formatted output, I see some other extra spaces (mostly around punctuation), but fixing these confusing ones first doesn't sound like a bad idea.

[1] http://bugs.debian.org/624715

 src/dash.1 |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
src/dash.1 +4 -4
index ddeb52b..3847d98 100644
@@ -2276,16 +2276,16 @@ setting.
 There is a maximum of 10 mailboxes that can be monitored at once.
 .It Ev PS1
 The primary prompt string, which defaults to
-.Dq $ \  ,
+.Dq $\  ,
 unless you are the superuser, in which case it defaults to
-.Dq # \  .
+.Dq #\  .
 .It Ev PS2
 The secondary prompt string, which defaults to
-.Dq \*[Gt] \  .
+.Dq \*[Gt]\  .
 .It Ev PS4
 Output before each line when execution trace (set -x) is enabled,
 defaults to
-.Dq + \  .
+.Dq +\  .
 .It Ev IFS
 Input Field Separators.
 This is normally set to
Signature · 1 line
1.7.5
#4 lore raw
Quoted 9 lines · Jonathan Nieder

From: Kalle Olavi Niemitalo <[email protected]>

LANG=C man dash shows:

PS1 The primary prompt string, which defaults to ``$ '', unless
you are the superuser, in which case it defaults to ``# ''.

PS2 The secondary prompt string, which defaults to ``> ''.

Quoted 8 lines

PS4 Output before each line when execution trace (set -x) is
enabled, defaults to ``+ ''.

Each of the documented default values has a graphic character and two spaces between the quotation marks. However, the actual default values have only one space, rather than two.

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt