Thanks David the H. for your response.
I notice the \a that is closing the "\[\e]0;\w\a\]\n" part of PS1 (which is an \007 and a bell) is necessary for this command to write into the window header.
\[ -Starts a sequence of escapes.
\e]0; -Starts the xterm title prompt expression.
\w -Display the current working directory.
\a -Equal to \007 (system bell).
In this case used to end the xterm title prompt.
\] -End escape sequence.
I cannot find a doc reference that discusses this use of the bell character. I have looked at:
(maybe I am just missing it)
Noticed something interesting:
Generally, it seems Linux is case sensitive for path/filenames.
However, a "cd /Bin" does work on my cygwin; and does navigate to the correct /bin folder. But the prompt now shows that directory as though it were "/Bin", but is not...???
Is this a bug or a feature?