Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: $TERM, zsh/termcap, crash
- X-seq: zsh-users 14547
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: $TERM, zsh/termcap, crash
- Date: Thu, 12 Nov 2009 03:24:26 +1300 (NZDT)
- In-reply-to: <20091111103932.4454.qmail@xxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
- References: <20091111103932.4454.qmail@xxxxxxxxxxx>
On Wed, 11 Nov 2009, Atom Smasher wrote:
in these form it can be gracefully tested:
test $(zmodload zsh/termcap)
[ $(zmodload zsh/termcap) ]
but if tested in a sublist the shell still dies:
zmodload zsh/termcap && echo $?
===============
on second thought, no. apparently the "zmodload zsh/termcap" doesn't
return a 1, it dies and causes the shell to return a 1 (in addition to my
syntax, above, being just plain wrong).
this seems to work on a command line:
if $(zsh -c "zmodload zsh/termcap")
then
zmodload zsh/termcap
fi
but it's giving me trouble in a zshrc... need rest...
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"A people that values its privileges above its principles
soon loses both."
-- Dwight D. Eisenhower
Messages sorted by:
Reverse Date,
Date,
Thread,
Author