[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: is it a bug
From: |
Greg Wooledge |
Subject: |
Re: is it a bug |
Date: |
Tue, 17 Nov 2020 07:56:47 -0500 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Mon, Nov 16, 2020 at 10:36:48PM -0800, L A Walsh wrote:
> or (to reproduce error):
> an_alias='res=() t=""
> for ci in "${!foo[@]}"; do \
Nice detective work there. I can confirm this in Debian's bash 5.0.3:
unicorn:~$ alias foo='a=() b=""
> for i in 1; do echo hi; done'
unicorn:~$ foo
bash: syntax error near unexpected token `;'
unicorn:~$ alias bar='a=()
> b=""
> for i in 1; do echo hi; done'
unicorn:~$ bar
hi