Re: combination of source and && does not result in current alias to be expanded

2025-05-24 Thread Lawrence Velázquez
On Sat, May 24, 2025, at 4:47 PM, Greg Wooledge wrote: > On Sat, May 24, 2025 at 15:00:21 -0500, Bob Mroczka wrote: >>    #!/bin/bash >>    set -o pipefail >>    shopt -s expand_aliases >>    alias ub='echo hi' >>    echo "alias ub='echo bye'" >~/.alias >>    cat ~/.alias >>    source ~/.alias && u

Re: combination of source and && does not result in current alias to be expanded

2025-05-24 Thread Greg Wooledge
On Sat, May 24, 2025 at 15:00:21 -0500, Bob Mroczka wrote: >    #!/bin/bash >    set -o pipefail >    shopt -s expand_aliases >    alias ub='echo hi' >    echo "alias ub='echo bye'" >~/.alias >    cat ~/.alias >    source ~/.alias && ub >    ub I believe you've run into the issue described in this