[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] a better description of \c
From: |
Benno Schulenberg |
Subject: |
[patch] a better description of \c |
Date: |
Tue, 12 Aug 2008 15:30:07 +0200 |
User-agent: |
KMail/1.9.9 |
Hi,
The help text for echo describes the effect of the backslash escape
\c like this:
$ help echo | grep '\\c'
\c suppress trailing newline
But what it actually does is different:
$ echo -e "before \c after \a"
before $
It cancels all characters that come after it. The printf command
from coreutils has a nice concise description for it:
$ /usr/bin/printf --help | grep '\\c'
\c produce no further output
Attached patch makes bash's builtin echo use the same description.
Benno
bash-3.2--backslash-c-description.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [patch] a better description of \c,
Benno Schulenberg <=