bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: feng xiangjun
Subject: bash-5.2.002: 'alias' stops working after some commands are executed.
Date: Fri, 14 Oct 2022 11:52:37 +0800

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 <http://gnu.org/licenses/gpl.html>

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]