Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16758

Re: echo builtin doesn't handle end-of-options flag

Path csiph.com!news.uzoreto.com!goblin3!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Martin Schulte <gnu@schrader-schulte.de>
Newsgroups gnu.bash.bug
Subject Re: echo builtin doesn't handle end-of-options flag
Date Sun, 16 Aug 2020 18:24:31 +0200
Lines 21
Approved bug-bash@gnu.org
Message-ID <mailman.2307.1597595081.2739.bug-bash@gnu.org> (permalink)
References <F122E6E9-6067-45EF-8D18-2B1EBF0D5917@codegnome.org> <3ce208a5-432d-4f9c-49bb-3e9442520e6b@gmx.com> <20200816182431.6fca7fdf124b1e1b479d4efb@schrader-schulte.de>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Trace usenet.stanford.edu 1597595081 6013 209.51.188.17 (16 Aug 2020 16:24:41 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To tjacobs@codegnome.com
Envelope-to bug-bash@gnu.org
In-Reply-To <3ce208a5-432d-4f9c-49bb-3e9442520e6b@gmx.com>
X-Mailer Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu)
Received-SPF pass client-ip=51.15.128.4; envelope-from=gnu@schrader-schulte.de; helo=sa.ds-gmbh.de
X-detected-operating-system by eggs.gnu.org: First seen = 2020/08/16 12:24:34
X-ACL-Warn Detected OS = Linux 3.11 and newer [fuzzy]
X-Spam_score_int -18
X-Spam_score -1.9
X-Spam_bar -
X-Spam_report (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no
X-Spam_action no action
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20200816182431.6fca7fdf124b1e1b479d4efb@schrader-schulte.de>
X-Mailman-Original-References <F122E6E9-6067-45EF-8D18-2B1EBF0D5917@codegnome.org> <3ce208a5-432d-4f9c-49bb-3e9442520e6b@gmx.com>
Xref csiph.com gnu.bash.bug:16758

Show key headers only | View raw


Hello Todd,

Eric Cook wrote:
> This is an intentional relic of the past, you really should use printf.

See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html#tag_20_37_18 

BTW/1:

Because of this /bin/echo behaves the same way in most Linux distribution.

BTW/2:

echo -n -n$'\n'

will print a -n in the bash.

Best regards

Martin

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: echo builtin doesn't handle end-of-options flag Martin Schulte <gnu@schrader-schulte.de> - 2020-08-16 18:24 +0200

csiph-web