Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15808
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: temp setting POSIXLY_CORRECT turns alias expansion off |
| Date | 2020-01-16 11:02 -0500 |
| Message-ID | <mailman.2735.1579190588.1979.bug-bash@gnu.org> (permalink) |
| References | <e9ec694f-aba2-1143-aa93-182ec2f85b8d@inlv.org> <eed07b24-b75a-fbd0-ed44-39ca6dd9b47e@case.edu> |
On 1/15/20 10:24 PM, Martijn Dekker wrote: > 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. You're probably right, but it's an interesting question. The idea is that POSIXLY_CORRECT=y true is essentially equivalent (assuming POSIXLY_CORRECT is not already set) to POSIXLY_CORRECT=y ; true; unset POSIXLY_CORRECT and turning off posix mode resets a default environment. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next | Find similar
Re: temp setting POSIXLY_CORRECT turns alias expansion off Chet Ramey <chet.ramey@case.edu> - 2020-01-16 11:02 -0500
csiph-web