zsh-workers
 help / color / mirror / code / Atom feed
* probably a bug in 'tr' command
@ 2019-03-12  7:06 Андрей Варяница
  2019-03-12  5:23 ` dana
  0 siblings, 1 reply; 3+ messages in thread
From: Андрей Варяница @ 2019-03-12  7:06 UTC (permalink / raw)
  To: zsh-workers

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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-12  5:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-12  7:06 probably a bug in 'tr' command Андрей Варяница
2019-03-12  5:23 ` dana
2019-03-12  7:41   ` Андрей Варяница

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).