[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GUB target_cpu error
From: |
Ralf Wildenhues |
Subject: |
Re: GUB target_cpu error |
Date: |
Mon, 29 Nov 2010 07:40:17 +0100 |
User-agent: |
Mutt/1.5.20 (2010-08-04) |
* 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
- GUB target_cpu error, Graham Percival, 2010/11/26
- Re: GUB target_cpu error, Valentin Villenave, 2010/11/27
- Re: GUB target_cpu error, Graham Percival, 2010/11/27
- Re: GUB target_cpu error, Neil Puttock, 2010/11/28
- Re: GUB target_cpu error, Valentin Villenave, 2010/11/28
- Re: GUB target_cpu error, Graham Percival, 2010/11/29
- Re: GUB target_cpu error,
Ralf Wildenhues <=
- Re: GUB target_cpu error, Graham Percival, 2010/11/29
- Re: GUB target_cpu error, Valentin Villenave, 2010/11/29