zsh-workers
 help / color / mirror / code / Atom feed
From: "Janos Barbero" <jbarbero@gmail.com>
To: zsh-workers@sunsite.dk
Subject: zsh weird behaviour (possibly bug?)
Date: Sun, 1 Jul 2007 20:32:18 -0700	[thread overview]
Message-ID: <77d935a0707012032u6011f3d1scf97e399ef7c5fa3@mail.gmail.com> (raw)

Hi,

I often notice that complex shell commands (usually with 5-10 pipes
and plenty of awk/sed) produce no output in zsh, but work fine in
bash. I found a really simple one today.
   ls | sed 's/\<\(.\)\([^ ]*\)/\u\1\L\2/g'
This produces no output in zsh, but does in any bash version. Further
investigation revealed this to be due to my precmd's/postcmd's. So
some more data:
1: precmd () {     print -Pn "\ek%n@%m %~$ \e\\"           }
2: preexec() {     print -Pn "\ek%n@%m %~$ $1\e\\"         }
3: precmd () {     print -Pn "\ek%~\e\\"                   }
4: preexec() {     print -Pn "\ek%~ $1\e\\"                }

If I have only line 4, command doesn't return (I have to manually kill
the window), but plain ls works. If I leave lines 3 and 4, no output.
Leaving either or both lines 1 and 2, it works fine. (I tried these
with nothing else in my .zshrc.)

Is the problem with my precmd/postcmd 3 and 4, or is this a zsh bug?
Sorry if this is sent out to the wrong list, I understood this is
where to file zsh bugs.

Thanks,
~Janos


             reply	other threads:[~2007-07-02  3:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-02  3:32 Janos Barbero [this message]
2007-07-02  9:29 ` Peter Stephenson
     [not found]   ` <77d935a0707020917o244fc086k72a679839d4f256b@mail.gmail.com>
2007-07-02 16:40     ` Peter Stephenson
2007-07-02 16:50       ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=77d935a0707012032u6011f3d1scf97e399ef7c5fa3@mail.gmail.com \
    --to=jbarbero@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).