On Wed, Jan 23, 2008 at 09:38:06PM +0000, [EMAIL PROTECTED] wrote: > Experiments using bash indicate that either ^ or ! is accepted > as the negation of a character set. Hence, > > [...] > > Anybody have an old Bourne shell around? An authentic C-shell? > What do they do?
The Bourne Shell uses ^, not ! for this. KSH88 does the same. KSH93 matches the Bash behaviour. Me? I don't care much either way :) The C shell didn't like character sets: % echo [^w]* echo: No match % echo [!w]* w]*: Event not found % echo * ... % echo *[w]* echo: No match % echo [w]* echo: No match % All this on Solaris Nevada (Solaris Express, OpenSolaris). Nico -- ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------