Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: string starts with ...
- X-seq: zsh-users 9843
- From: Hannu Koivisto <azure@xxxxxx>
- To: Matthias Berndt <berndt.matthias@xxxxxx>
- Subject: Re: string starts with ...
- Date: Sat, 21 Jan 2006 16:05:39 +0200
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20060121135331.GA557@xxxxxxxxxxxxxxxxxxxxx> (Matthias Berndt's message of "Sat, 21 Jan 2006 14:53:31 +0100")
- Mail-copies-to: nobody
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060121135331.GA557@xxxxxxxxxxxxxxxxxxxxx>
- Sender: Hannu Koivisto <Hannu.Koivisto@xxxxxxxxxxx>
Matthias Berndt <berndt.matthias@xxxxxx> writes:
> how can I test if a string starts with '#'?
> I can't find the trick.
[[ $YOURSTRING == \#* ]]
See "Conditional Expressions" in the manual.
--
Hannu
Messages sorted by:
Reverse Date,
Date,
Thread,
Author