zsh-workers
 help / color / mirror / code / Atom feed
From: Stephane Chazelas <Stephane_Chazelas@yahoo.fr>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: compinit in sourced file breaks bg command!?!
Date: Tue, 27 Mar 2007 10:33:06 +0100	[thread overview]
Message-ID: <20070327093306.GA4885@sc.homeunix.net> (raw)

Hi,

I've been experiencing an annoting behavior of bg recently.

$ cmd
<CTRL-Z>
$ bg

and  cmd is not made the "current job".

It's OK when running with zsh -f though.

I've tried to narrow it down. Apparently it's due to the
"compinit" line in my ~/.zshrc. To reproduce it:

$ rm ~/.zcompdump
$ zsh -f
sc% autoload compinit
sc% . <(echo compinit)
sc% sleep 200
<Ctrl-Z>
zsh: suspended  sleep 200
sc% jobs
[1]  + suspended  sleep 200
sc% bg
[1]    continued  sleep 200
sc% jobs
[1]    running    sleep 200
sc% fg
fg: no current job

The behavior doesn't show up if ". <(echo compinit)" is replaced
with "compinit", that is compinit has to be run from a sourced
file.

That's the zsh-beta package on debian unstable:

4.3.2-dev-1+20070324-1

It's OK with zsh package 4.3.2-25

Any idea?

Best regards,
Stéphane


             reply	other threads:[~2007-03-27  9:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-27  9:33 Stephane Chazelas [this message]
2007-03-27 10:42 ` Peter Stephenson
2007-03-27 15:08   ` Bart Schaefer
2007-03-27 16:45   ` Stephane Chazelas

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=20070327093306.GA4885@sc.homeunix.net \
    --to=stephane_chazelas@yahoo.fr \
    --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).