From: "Андрей Варяница" <asvs07@gmail.com>
To: zsh-workers@zsh.org
Subject: probably a bug in 'tr' command
Date: Tue, 12 Mar 2019 11:06:29 +0400 [thread overview]
Message-ID: <7bdcddb8-75b1-3dcf-d5bb-b538448fde4b@gmail.com> (raw)
When I run the following command in zsh I get empty result.
echo '-' | tr -dc '[0-9]-'
Expected result is single dash as output.
When I run it in bash or sh, then result is single dash as expected.
% zsh --version
OUTPUT> zsh 5.7.1 (x86_64-pc-linux-gnu)
% tr --version
OUTPUT> tr (GNU coreutils) 8.30
OUTPUT> Copyright (C) 2018 Free Software Foundation, Inc.
OUTPUT> License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>.
OUTPUT> This is free software: you are free to change and redistribute it.
OUTPUT> There is NO WARRANTY, to the extent permitted by law.
OUTPUT>
OUTPUT> Written by Jim Meyering.
I will also say, that I poorly familiar with manuals of zsh and even tr.
So maybe this behavior is not a bug.
next reply other threads:[~2019-03-12 5:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-12 7:06 Андрей Варяница [this message]
2019-03-12 5:23 ` dana
2019-03-12 7:41 ` Андрей Варяница
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=7bdcddb8-75b1-3dcf-d5bb-b538448fde4b@gmail.com \
--to=asvs07@gmail.com \
--cc=zsh-workers@zsh.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).