Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15095
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: continued alias problem -- some work, some don't, why? |
| Date | 2019-07-09 09:21 -0400 |
| Message-ID | <mailman.602.1562678497.2688.bug-bash@gnu.org> (permalink) |
| References | <5D23C417.5060108@tlinx.org> <20190709132112.GW2450@eeg.ccf.org> |
On Mon, Jul 08, 2019 at 03:30:47PM -0700, L A Walsh wrote: > alias my='declare ' > alias Export='-x ' > alias Map='-A ' > alias Int='-i ' > > my Export Map Int ffffe=([one]=1) > -bash: declare: `-x': not a valid identifier > -bash: declare: `-A': not a valid identifier > -bash: declare: `-i': not a valid identifier This is what I get when I run your commands: wooledg:~$ alias my='declare ' wooledg:~$ alias Export='-x ' wooledg:~$ alias Map='-A ' wooledg:~$ alias Int='-i ' wooledg:~$ my Export Map Int ffffe=([one]=1) wooledg:~$ set | grep -e Export -e Map -e Int -e ffffe _=ffffe ffffe=([one]="1" ) wooledg:~$ declare -p ffffe declare -Aix ffffe=([one]="1" ) Because the dead horse is still equine-shaped, I will beat upon it some more: this is utterly horrible coding and you should stop doing it. I strongly disagree with your decision to do this, but whatever bug you're seeing, I'm not seeing it. Not in bash 5.0 or 4.4, anyway, which are the only two versions I tried.
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: continued alias problem -- some work, some don't, why? Greg Wooledge <wooledg@eeg.ccf.org> - 2019-07-09 09:21 -0400
csiph-web