Backslashes are cobbled up if a string contains an open square bracket.
If you run the shell script:
#!/bin/sh
BACKSLASH='\u' SQUARE='\u[]' echo $BACKSLASH echo $SQUARE
on ubuntu feisty 2.6.20-16, mac os x and solaris 10 the output is:
\u \u[]
but after upgrading to hardy 2.6.24-19 the output is:
\u u[]
It seems to be the parsing of the string. This also happens parsing string parameters on the command line.
Backslashes are cobbled up if a string contains an open square bracket.
If you run the shell script:
#!/bin/sh
BACKSLASH='\u'
SQUARE='\u[]'
echo $BACKSLASH
echo $SQUARE
on ubuntu feisty 2.6.20-16, mac os x and solaris 10 the output is:
\u
\u[]
but after upgrading to hardy 2.6.24-19 the output is:
\u
u[]
It seems to be the parsing of the string. This also happens parsing string parameters on the command line.