On this page and elsewhere, I see the advise to set ANSI Escape colors codes as follows:PS1=\[\033[34m\][\$(date +%H%M)][\u@\h:\w]$ Here, the color escape code: \[\033[34m\] is totally enclosed in square brackets.  However, the wikipedia page for the same topic says:Wikipedia page has the following as an example:Examples: to get black letters on white background use ESC[30;47mHere, they are only using the left square bracket.When is it necessary to use two square brackets when writing a shell script ans using ANSI escapes?
When setting ANSI Escape codes (like for color) why are two square brackets sometimes used?
bash;shell script;escape characters