Re: a 'type' script for mu (Repost...)

From: Michele Andreoli (m.andreoli@tin.it)
Date: Fri Mar 10 2000 - 20:36:12 CET


On Fri, Mar 10, 2000 at 01:15:12PM -0500, Alfie Costa nicely wrote:
>
> The ash trick I'm interested in has to do with case...esac's pattern matching.
> For example here is a routine to count characters...
>
> case Z$1 in Z) echo no characters ;; Z?) echo 1 char ;; Z??) echo 2 char
> ;; Z???) echo 3 char ;; Z*) echo 4 or more chars ;; esac
>
>

Do not trust in pattern-matching in ash case. Do not work properly.

Michele

-- 
I'd like to conclude with a positive statement, but I can't 
remember any. Would two negative ones do?       -- Woody Allen
---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk


This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:13 CET