On Sunday May 3 2009, Jim Henderson wrote:
...
Bash *should* have induced that the "!" was in a quoted line and shouldn't have expanded it. It did for some reason - maybe because Duaine put two single quotes instead of a double quote at the start of the string. I don't know why and I don't particularly care.
No. The grammar of BASH includes history expansion in double-quoted strings. Only single-quoted strings protect against history expansion. If by "should" you mean to express a disagreement with the authors of BASH on when history expansion should be active, well, that's your prerogative, but it's not how things are.
...
In other words, the intention was interpreted incorrectly by the shell.
We're talking about computers here. If we don't speak their language, desired results cannot be exected. If there's a command interpreter you'd like to work with and it doesn't exist, you'll have to create it or commission its creation yourself.
If you want to insist that my read of this is incorrect, fine.
Clearly it is.
...
Jim
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org