Mail Archives: djgpp/2000/08/22/09:20:46
Please look at the following code:
case ${PWD-`pwd`} in
/*)
echo POSIX;;
?:[/\\]*)
echo MS-DOS;;
esac
I would expect that the code prints: MS-DOS.
The fact is that it does nothing.
If I replace the regular expresion: [/\\] by [\\/]
the code works.
Is this a bash bug or some Posix feature completely
unknow to me. I am using stock bash203.
I have found *similar* code in conf.sh. This file is part
of rcs5713s.zip and of course I can not configure the
package due to this "misfeature" or bug in bash.
TIA for any help.
Guerrero, Juan Manuel
- Raw text -