From: Davide Brini via GNU coreutils Bug Reports <bug-coreutils@gnu.org>
To: 68892@debbugs.gnu.org
Subject: bug#68892: 'tr' function | Outputs printed before the command prompts
Date: Fri, 2 Feb 2024 15:57:20 +0100 [thread overview]
Message-ID: <20240202155720.4575687c@swedishchef> (raw)
In-Reply-To: <CAM_8-ChfXKQAKgEG9bDgBzDhLDC7GjQSWXMLo2_Wzzr9N+s06g@mail.gmail.com>
On Fri, 2 Feb 2024 16:40:26 +0200, Ricky Tigg <ricky.tigg@gmail.com> wrote:
> OS: Fedora v86_64. coreutils v.: 9.3. Shell: bash v. 5.2.26.
>
> Hello. Normally outputs are printed after the command prompt; "#" "$" on
> my system.
>
> (...)@(...):~$ rpm -ql coreutils | head -2
> /usr/bin/[
> /usr/bin/arch
>
> Unexpectedly, through a pipe invoking 'tr', outputs are printed before the
> command prompts.
>
> (...)@(...):~$ rpm -ql coreutils | head -2 | tr '\n' ' '
> /usr/bin/[ /usr/bin/arch (...)@(...):~$
You're removing newlines, and this causes the prompt to be displayed
immediately after the command output without an intervening newline.
--
D.
prev parent reply other threads:[~2024-02-02 14:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-02 14:40 bug#68892: 'tr' function | Outputs printed before the command prompts Ricky Tigg
2024-02-02 14:57 ` Davide Brini via GNU coreutils Bug Reports [this message]
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
List information: https://lists.gnu.org/mailman/listinfo/bug-coreutils
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240202155720.4575687c@swedishchef \
--to=bug-coreutils@gnu.org \
--cc=68892@debbugs.gnu.org \
--cc=dave_br@gmx.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).