Re: Unexpanded tilde in DIRSTACK[0]

2017-10-30 Thread Chet Ramey
On 10/29/17 8:05 PM, Steve Jones wrote: > While writing a function to save the directory stack as a script, I > noticed that ${DIRSTACK[0]}, the current directory always has the tilde > unexpanded. > > This is the same with bash-4.4.12 and bash-4.3.11. > > I was wondering if this is an oversight

Unexpanded tilde in DIRSTACK[0]

2017-10-29 Thread Steve Jones
While writing a function to save the directory stack as a script, I noticed that ${DIRSTACK[0]}, the current directory always has the tilde unexpanded. This is the same with bash-4.4.12 and bash-4.3.11. I was wondering if this is an oversight since DIRSTACK[0] is the same as PWD, or intentional.