DASH Shell discussions
 help / color / mirror / Atom feed
From: Jonathan Nieder <jrnieder@gmail.com>
To: dash@vger.kernel.org
Cc: Kalle Olavi Niemitalo <kon@iki.fi>
Subject: [PATCH] [MAN] Remove spurious space in descriptions of PS1, PS2, PS4
Date: Mon, 2 May 2011 03:07:01 -0500	[thread overview]
Message-ID: <20110502080648.GA16077@elie> (raw)
In-Reply-To: <87liyqpudv.fsf@Pulska.kon.iki.fi>

From: Kalle Olavi Niemitalo <kon@iki.fi>

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.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
Kalle Olavi Niemitalo wrote[1]:

> 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(-)

diff --git a/src/dash.1 b/src/dash.1
index ddeb52b..3847d98 100644
--- a/src/dash.1
+++ b/src/dash.1
@@ -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
-- 
1.7.5


       reply	other threads:[~2011-05-02  8:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87fwozqy21.fsf@Pulska.kon.iki.fi>
     [not found] ` <20110430220553.GB20433@elie>
     [not found]   ` <87liyqpudv.fsf@Pulska.kon.iki.fi>
2011-05-02  8:07     ` Jonathan Nieder [this message]
2011-07-07  7:03       ` [PATCH] [MAN] Remove spurious space in descriptions of PS1, PS2, PS4 Herbert Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110502080648.GA16077@elie \
    --to=jrnieder@gmail.com \
    --cc=dash@vger.kernel.org \
    --cc=kon@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox