Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall uname output: Linux snow 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

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

Description:
   The following script testme.sh demonstrates the issue
   #!/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


Repeat-By:
   Now execute it:
   ./testme.sh
   alias ub='echo bye'
   hi
   bye

   Now, I expect the last two lines to read "bye" but they don't.

Bob

Reply via email to