Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A short form for if-then-else
- X-seq: zsh-users 14497
- From: James Michael Fultz <croooow@xxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: A short form for if-then-else
- Date: Thu, 15 Oct 2009 12:45:25 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:x-croooow:user-agent; bh=jX2uZRceDN9Fv48ww/gUmGiUAt1Bppmliydj0HrVbIE=; b=esYMocUcGXzYTydVA6HICRWoUIjzLPF36oCD6I5enLhB7TQ/CbbSNY6Ge8ptLSIHqD JlmxrwQNMtwIIyj8NIlnO37/QHxhrJ0e8wwkae1yGKmLWCYHFYAIai+EWCcfIKm58t84 v3eCUk5ajHQrLV7arXDvH6RBZCCuDVIe93L/4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to:x-croooow :user-agent; b=Ss4PFJUUBNRXDYWtEqHcKetIp6l/aZ9byk6wgHGZVJ9Rq3hRs0r6uNuqIMnbKt91yZ TyBBKGdCaSYikI42olnQfm1MbuNH6oyFbQgTtkZhMEyGKXNP4pRWIJTPFo4qIVrVmiSu E2Iet6kgsIQj4nQJd6WkfvR+vGFTiDH/iTlzA=
- In-reply-to: <82839db60910150936o1d75fd27u80bd3aa41143f1c@xxxxxxxxxxxxxx>
- Mail-followup-to: ZSH User List <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <82839db60910150936o1d75fd27u80bd3aa41143f1c@xxxxxxxxxxxxxx>
* Anonymous bin ich <ichbinanon@xxxxxxxxx> [2009-10-15 18:36 +0200]:
> I want to check if a program (mailx) is present or not. If present,
> the program will be run, if not, an error message should be printed.
> No other message should be printed.
if whence mailx >/dev/null; then mailx; else echo "not found"; fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author