bash-5.2.002: 'alias' stops working after some commands are executed.

2022-10-14 Thread feng xiangjun
Hello, all.

I'm running slackware-64 current with
~$ bash --version
GNU bash, version 5.2.2(1)-release (x86_64-slackware-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

The problem is if some commands are executed, 'alias'  stops working.

How to reproduce it:

~$ printenv LS_OPTIONS
-F -b -T 0 --color=auto
~$ alias
alias ls='/bin/ls $LS_OPTIONS'
alias mc='. /usr/share/mc/bin/mc-wrapper.sh'
~$ echo $(
> ^C
~$ ls   # This is not the alias 'ls' but the plain
'/bin/ls', in other words, there's not 'color' output.

If you need more info, please let me know. Thanks.



Re: bash-5.2.002: 'alias' stops working after some commands are executed.

2022-10-14 Thread Chet Ramey

On 10/13/22 11:52 PM, feng xiangjun wrote:


The problem is if some commands are executed, 'alias'  stops working.


Thanks for the report. It will be fixed in the next devel branch push.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/




Re: Bash segfaults when using extglob on an empty var

2022-10-14 Thread Chet Ramey

On 10/13/22 2:50 PM, Justin Wood (Callek) wrote:


Bash Version: 5.2
Patch Level: 2
Release Status: release

Description:
Bash segfaults when using extglob on an empty var. Regression in 5.2.2
compared to 5.1.16


Thanks for the report. This will be fixed in the next devel branch push.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/