mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Fix BUG_REDIRIO
ksh used to redirect standard output by default when no file descriptor was specified with the rarely used '<>' reading/writing redirection operator. It now redirects standard input by default, as POSIX specifies and as all other POSIX shells do. To redirect standard output for reading and writing, you now need '1<>'. Ref.: https://github.com/att/ast/issues/75 http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_07_07 (cherry picked from commit 29afc16c47824fc79ed092ae7704c525b1db6a0a)
This commit is contained in:
parent
915b2b2e19
commit
eeee77edd1
4 changed files with 11 additions and 8 deletions
9
NEWS
9
NEWS
|
@ -23,3 +23,12 @@ Any uppercase BUG_* names are modernish shell bug IDs.
|
|||
case $n in
|
||||
( [0-9] | "[0-9]") echo "$n is a number or the number pattern" ;;
|
||||
esac
|
||||
Ref.: https://github.com/att/ast/issues/476
|
||||
|
||||
- Fix BUG_REDIRIO: ksh used to redirect standard output by default when no
|
||||
file descriptor was specified with the rarely used '<>' reading/writing
|
||||
redirection operator. It now redirects standard input by default, as POSIX
|
||||
specifies and as all other POSIX shells do. To redirect standard output
|
||||
for reading and writing, you now need '1<>'.
|
||||
Ref.: https://github.com/att/ast/issues/75
|
||||
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_07_07
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue