#991959 /bin/bash: Built-in default path contains cwd

Package:
bash
Source:
bash
Description:
GNU Bourne Again SHell
Submitter:
Ian Jackson
Date:
2024-05-14 09:12:04 UTC
Severity:
important
Tags:
#991959#5
Date:
2021-08-06 17:39:21 UTC
From:
To:
Observed behaviour:

$ env - bash -c 'echo $PATH'
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.
$

Expected behaviour:

$ env - bash -c 'echo $PATH'
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
$

dash gets this right.  Tagging this "important" because having . on
the path is a security hazard which we mostly got rid of everywhere.

Having . come back in unusual situations where bash makes up the PATH
is quite unexpected and surely not desirable.

#991959#10
Date:
2021-08-06 18:59:45 UTC
From:
To:
Hi Ian,

I guess we can merge this one with #781367, doing so now.

Regards,
Salvatore