Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: command substitution with control chars?
- X-seq: zsh-users 11340
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: command substitution with control chars?
- Date: Sun, 25 Mar 2007 17:26:49 -0400 (EDT)
- In-reply-to: <070325122619.ZM26273@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
- References: <20070325094407.62594.qmail@xxxxxxxxxxx> <237967ef0703251133y79cde28coaa7a788f0ced8069@xxxxxxxxxxxxxx> <20070325185204.48021.qmail@xxxxxxxxxxx> <070325122619.ZM26273@xxxxxxxxxxxxxxxxxxxxxx>
got it!
it was partly that my script outputs the percentage of battery charge,
complete with a trailing "%". of course this needed to be escaped, but i
think the missing "setopt promptsubst" was the bigger problem. i'd feel
stupid about it, but there doesn't seem to be any reference to that in the
zshall man page (zsh-4.3.2).
if anyone wants a copy of the script that seems to work with freebsd's
acpi, drop me a line. the only problem with it is that the sysctl command
takes about 0.2-0.3 seconds, so i'll probably run it as a cron job,
writing to a file, and having the prompt read it from the file.
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"All organizations are hierarchical. At each level people
serve under those above them. An organization is therefore
a structured institution. If it is not structured, it is a
mob. Mobs do not get things done, they destroy things."
-- Theodore Levitt, Management for business Growth
Messages sorted by:
Reverse Date,
Date,
Thread,
Author