Path: csiph.com!news.uzoreto.com!goblin3!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Martin Schulte 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: References: <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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20200816182431.6fca7fdf124b1e1b479d4efb@schrader-schulte.de> X-Mailman-Original-References: <3ce208a5-432d-4f9c-49bb-3e9442520e6b@gmx.com> Xref: csiph.com gnu.bash.bug:16758 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