Bash Version: 4.2
Patch Level: 37
Release Status: release

Description:
        If a file with a command that ends in \<newline> is sourced, the next
command issued in the command line does not interpret aliases but
subsequent ones do. It's a minor issue easy to work around, but since
it's surprising behaviour and some aliases are important, I thought I'd
report it. In the real case where I used it, the command was 'rm' which
was an alias to 'rm -i' to ask for confirmation, and it didn't ask.

Repeat-By:
        $ alias hi=echo\ hello
        $ echo /bin/true\\ > testbug.sh
        $ hi
        hello
        $ source testbug.sh
        $ hi
        bash: hi: command not found
        $ hi
        hello

Reply via email to