seeing these exchanges.
As to the question that came up in the dialogue:
> Um... don't you mean to use the alias command somewhere, like:
>
> alias popd='builtin popd|tr " " "\n"'
I defined the alias in ~/.bash_aliases
From one of your initial explanations: that points out that the alias would be executed in a sub shell, it makes sense
to me that, that approach won't work.
It appears to me that the sub shell does inherit the dirs stack, but any changes that are made to the dir stack remain
in the sub shell and do not propagate back to the parent shell.
I was thrown off track by:
alias dirs='dirs -v'
But after you explanation of the sub shell execution environment, this makes sense as dirs does not make any changes
to the dirs stack.
Does the exchanges of your implementation comments mean the possibility of the addition of the -v option to pushd and
popd are in the realm of possibility?
-Pete