* Graham Percival wrote on Mon, Nov 29, 2010 at 07:28:09AM CET:
> I would be astonished if the same functionality couldn't be
> reached using POSIX shell commands, which should work on any unix
> shell.

This is about 'shopt -s nocasematch', right?

No, Posix shell doesn't have shopt, nor does it have case-ignoring
matching facilities.  What you can do is lower-case both the word to be
matched and the pattern with something like
  lower=`printf '%s\n' "$word" | tr "[:upper:]" "[:lower:]"`

which is Posix.  There are however systems (hello Solaris!) where not
all tr programs are Posix-compatible, so they might not grok character
classes.  For maximal portability you can enumerate each character.

Hope that helps.

Cheers,
Ralf

_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to