Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15807
| From | Martijn Dekker <martijn@inlv.org> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | temp setting POSIXLY_CORRECT turns alias expansion off |
| Date | 2020-01-16 04:24 +0100 |
| Message-ID | <mailman.2684.1579145088.1979.bug-bash@gnu.org> (permalink) |
| References | <e9ec694f-aba2-1143-aa93-182ec2f85b8d@inlv.org> |
When alias expansion is enabled for a script in bash native mode, prefixing POSIXLY_CORRECT=y to any command will turn alias expansion globally off. This is a bug because the assignment should only have effect on that command. $ bash -c 'shopt -s expand_aliases; shopt|grep expand_a; POSIXLY_CORRECT=y true; shopt|grep expand_a' expand_aliases on expand_aliases off Expected behaviour: alias expansion should stay on. I've confirmed this bug on bash 4.2 and later; bash 4.1 and earlier seem fine. - M. -- modernish -- harness the shell https://github.com/modernish/modernish
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
temp setting POSIXLY_CORRECT turns alias expansion off Martijn Dekker <martijn@inlv.org> - 2020-01-16 04:24 +0100
csiph-web