Re: Tilde is expanded in $PATH, inconsistent behavior

2025-01-24 Thread Chet Ramey
On 1/23/25 9:15 PM, Keith Thompson wrote: But I don't see anything in the "Tilde Expansion" section that documents the behavior of a literal '~' in $PATH. It remains undocumented. I suggest it would be better to document the behavior, since I imagine it's fairly easy to run into it accident

Re: Tilde is expanded in $PATH, inconsistent behavior

2025-01-24 Thread Chet Ramey
On 1/23/25 6:37 PM, Keith Thompson wrote: Bash Version: 5.2 Patch Level: 32 Release Status: release Description: A literal '~' or other tilde-prefix at the beginning of an element of $PATH is expanded when a command is executed from the bash prompt. This is undocumented and inco

Re: Tilde is expanded in $PATH, inconsistent behavior

2025-01-24 Thread Keith Thompson
On Fri 2025-01-24 11:45:22 EST, Chet Ramey wrote: > On 1/23/25 9:15 PM, Keith Thompson wrote: > > > But I don't see anything in the "Tilde Expansion" section that > > documents the behavior of a literal '~' in $PATH. > > It remains undocumented. Then I suggest that the phrase "as described above u