Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15010
| From | Dušan Kreheľ <dusankrehel@gmail.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | "COMMAND 2>&1 > PATH" doesn't work |
| Date | 2018-12-30 22:10 +0100 |
| Message-ID | <mailman.6585.1546205059.1284.bug-bash@gnu.org> (permalink) |
Hello. If I try in bash this command ex. "rmdir somethingA > somethingA.out 2>&1" work right. But, if I try "rmdir somethingB 2>&1 > somethingB.out" that work wrong. That work's wrong in Bash version 4.4.23(1) and too in 5.0.0(1)-rc1: ######### v. 4.4.23(1) ######### $ mkdir /dev/shm/test $ cd /dev/shm/test $ rmdir somethingA > somethingA.out 2>&1 $ rmdir somethingB 2>&1 > somethingB.out rmdir: failed to remove 'somethingB': No such file or directory $ cat somethingA.out rmdir: failed to remove 'somethingA': No such file or directory $ cat somethingB.out $ bash --version GNU bash, version 4.4.23(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. $ ######### 5.0.0(1)-rc1 ######### $ cd bash-5.0-rc1/ $ ./bash $ echo $BASH_VERSION 5.0.0(1)-rc1 $ mkdir /dev/shm/test $ cd /dev/shm/test $ rmdir somethingA > somethingA.out 2>&1 $ rmdir somethingB 2>&1 > somethingB.out rmdir: failed to remove 'somethingB': No such file or directory $ cat somethingA.out rmdir: failed to remove 'somethingA': No such file or directory $ cat somethingB.out $ Dušan Kreheľ
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
"COMMAND 2>&1 > PATH" doesn't work Dušan Kreheľ <dusankrehel@gmail.com> - 2018-12-30 22:10 +0100
csiph-web