zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH (and another bug report): Re: zsh script and SIGCONT
Date: Wed, 15 Dec 1999 17:30:50 +0000	[thread overview]
Message-ID: <991215173050.ZM15230@candle.brasslantern.com> (raw)
In-Reply-To: <199912140913.KAA28947@beta.informatik.hu-berlin.de>

On Dec 14, 10:13am, Sven Wischnowsky wrote:
} Subject: Re: PATCH (and another bug report): Re: zsh script and SIGCONT
}
} Bart Schaefer wrote:
} 
} > So I was about to suggest that we should simply turn off MONITOR during
} > `.' and `source' [...]
} 
} [...] Somehow I think it should either suspend the `.' or the loop
} (the top-level construct in the sourced file). The latter if we think
} of the sourced file as an equivalent of command line input.

If it's going to suspend anything, it should be the `.'.  It's NOT
equivalent to command-line input, because zsh doesn't deal with infinite
typeahead.  It's closest to executing a shell function, with no local
parameter context.

However, we certainly don't want startup rc-files to get backgrounded
if one of them happens to do something that gives the user time to press
^Z.  And I can see an argument for wanting to be able to suspend an
individual command without interrupting startup processing entirely.
And it definitely doesn't make any sense to background *that*.

It's a tricky situation.  The only useful criteria seems to me to be
whether the user can reasonably expect to get back to a shell prompt when
he presses ^Z.  If the `.' command is going to violate that expectation,
then at least the doc should say so somewhere.

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


  reply	other threads:[~1999-12-15 17:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-14  9:13 Sven Wischnowsky
1999-12-15 17:30 ` Bart Schaefer [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-12-14 13:21 Sven Wischnowsky
     [not found] <Liam.944999422.929800.796.1038708749@fizz>
1999-12-12 20:07 ` Bart Schaefer
1999-12-13 10:25   ` Zefram
1999-12-13 11:00     ` Sven Wischnowsky
1999-12-13 17:42       ` Bart Schaefer

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=991215173050.ZM15230@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=zsh-workers@sunsite.auc.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).