Re: builtin printf not printing unicode characters?

2008-05-13 Thread pk
On Sunday 11 May 2008 04:16, Chet Ramey wrote: pk wrote: The man page says that bash builtin printf supports the standard printf(1) formats. But it seems that \u is not working: $ /usr/bin/printf '\u212b\n' Å $ printf '\u212b\n' \u212b Am I doing something wrong here? The `\u'

what matched in a case statement

2008-05-13 Thread Poor Yorick
Is there any way to get a handle on what matched in a case statement? Something like this: case lawlesspoets in *poets) echo $CASEMATCH one ;; lawless*) echo $CASEMATCH two ;; esac -- Yorick

Re: possible compgen bug

2008-05-13 Thread Nicholas Mc Guire
Nicholas Mc Guire wrote: probably errornous behavior: when using compgen to allow shortcuts (in the below example for quit and exit I get a strange behavior when no input is entered and write times out after 5 seconds: #! /bin/bash read -p