zsh-workers
 help / color / mirror / code / Atom feed
* zsh user's guide formatting glitch
@ 2001-01-29  9:11 Andrej Borsenkow
  2001-01-29  9:23 ` More on " Andrej Borsenkow
  0 siblings, 1 reply; 4+ messages in thread
From: Andrej Borsenkow @ 2001-01-29  9:11 UTC (permalink / raw)
  To: ZSH workers mailing list

This looks weird, does not it (taken from online version)?

3.8.4: Subshells and current shells
In case you're confused about what happens in the current shell and what
happens in a subshell, here's a summary.

...

7. All forms of substitution except `...`, $LPAR()...$RPAR(),
=LPAR()...$RPAR(), <LPAR()...$RPAR() and >LPAR()...$RPAR().

-andrej

Have a nice DOS!
B >>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* More on  zsh user's guide formatting glitch
  2001-01-29  9:11 zsh user's guide formatting glitch Andrej Borsenkow
@ 2001-01-29  9:23 ` Andrej Borsenkow
  2001-01-29 15:52   ` Setting xterm title (Re: More on zsh user's guide formatting glitch) Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Andrej Borsenkow @ 2001-01-29  9:23 UTC (permalink / raw)
  To: ZSH workers mailing list


In 3.3.3: compiling functions, Special functions:


  chpwd() {
    [[ -t 1 ]] || return
    case $TERM in
      sun-cmd

print -Pn "\e]l%~\e\\" ;; *xterm*|rxvt|(dt|k|E)term) print -Pn "\e]2;%~\a" ;;
esac } ) The first line tests that standard output is really a terminal ---
you don't want

i.e. formatting is broken.

Hmm ... in my experience, setting title in chpwd() turned out to be
suboptimal. If any external program (zsh subshell including) changed your
title, zsh won't notice it until next cd. So, I finally decided in favour of
preexec(). May be, trapping child exits could do the job, but it looks just
too complicated for this simple task.

-andrej


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Setting xterm title (Re: More on  zsh user's guide formatting glitch)
  2001-01-29  9:23 ` More on " Andrej Borsenkow
@ 2001-01-29 15:52   ` Bart Schaefer
  2001-01-29 16:42     ` Andrej Borsenkow
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2001-01-29 15:52 UTC (permalink / raw)
  To: ZSH workers mailing list

On Jan 29, 12:23pm, Andrej Borsenkow wrote:
} 
} So, I finally decided in favour of preexec().

precmd() ?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Setting xterm title (Re: More on  zsh user's guide formatting glitch)
  2001-01-29 15:52   ` Setting xterm title (Re: More on zsh user's guide formatting glitch) Bart Schaefer
@ 2001-01-29 16:42     ` Andrej Borsenkow
  0 siblings, 0 replies; 4+ messages in thread
From: Andrej Borsenkow @ 2001-01-29 16:42 UTC (permalink / raw)
  To: ZSH workers mailing list


> 
> On Jan 29, 12:23pm, Andrej Borsenkow wrote:
> } 
> } So, I finally decided in favour of preexec().
> 
> precmd() ?
> 

Yes.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-01-29 16:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-29  9:11 zsh user's guide formatting glitch Andrej Borsenkow
2001-01-29  9:23 ` More on " Andrej Borsenkow
2001-01-29 15:52   ` Setting xterm title (Re: More on zsh user's guide formatting glitch) Bart Schaefer
2001-01-29 16:42     ` Andrej Borsenkow

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).