Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: command substitution with control chars?



On Sun, 25 Mar 2007, Micah Cowan wrote:

Atom Smasher wrote:
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).

There is; but the option is actually termed PROMPT_SUBST (options are case-insensitive, underscores don't matter).
===================

so now i feel stupid ;)

my PAGER=most, so upper/lower case doesn't matter, but the underscore made me miss it.


--
        ...atom

 ________________________
 http://atom.smasher.org/
 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
 -------------------------------------------------

	A student asked his old Sufi Master if he should tie up
	his camel for the night, so that it wouldn't wander
	away while they were sleeping or if doing so was an
	insult to God. Should he leave the camel untied to
	show his trust in God that the camel wouldn't run away?
	The Master replied "Trust God AND tie up your camel."




Messages sorted by: Reverse Date, Date, Thread, Author