On Thu, Oct 18, 2012, David Laight wrote: > Why not pipe through tr -cd in order to remove anything not alphanumeric > or sane punctuation.
Fully agree. It's just a version string. Any characters outside a "safe" set should be filtered. Nothing fancy needed here. > Although I suspect that the only problem character is ". And escape sequences, and backslash at the end, ... General rule: keep only what you know is safe, replace/remove all the rest (I would replace it with underscores).