On Tue, Mar 22, 2022, at 4:53 PM, L A Walsh wrote:
> On 2022/03/21 03:40, Alex fxmbsw7 Ratchev wrote:
>> i solve this by shopt -s nullglob
>>
>>>
>>> Repeat-By:
>>> Code: x=("/"); for i in "${x[@]%/}"; do echo "i is '$i'"; done
>>> Result: none
>>> Expected result: i is ''
>>>
> if you have nullglob set, then that is not the correct result.The original bug report said nothing about nullglob. -- vq
