zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <A.Main@dcs.warwick.ac.uk>
To: zsh-workers@math.gatech.edu (Z Shell workers mailing list)
Subject: Re: Background jobs with no job control / disown bug?
Date: Fri, 3 Nov 1995 15:47:22 +0000 (GMT)	[thread overview]
Message-ID: <22061.199511031547@stone.dcs.warwick.ac.uk> (raw)
In-Reply-To: <199511031506.QAA08638@bolyai.cs.elte.hu> from "Zoltan Hidvegi" at Nov 3, 95 04:05:45 pm

>> I had thought that adding a new pre-command `nojob' would be
>> a good idea.  But to do this right would probably require some
>> work.
>
>Zefram posted a solution for that which I like quite much.  It is part of my
>releases sine it appeared.  I had to rewrite it for the latest test releases
>and now it is much simpler than the original.  The large patch to zsh.h only
>renumbers the symbols.

Indeed, that's a lot simpler than what I wrote.  Making the Z_* flags
ORable was a good move.

I think this functionality should get into zsh at some point, but I'm
not sure which syntax would be better.  I think nojob is a little
cleaner, but generally these prefixes indicate that the command will
actually be treated differently (cf. noglob, nocorrect).  &! is similar
in effect to &, so the similarity in form is appropriate.  But then
there's coproc...  On the whole I think I favour the &! syntax, partly
on the assumption that someone will implement an option to support the
ksh coprocess syntax (|&).  Then again, how will we do a disowned
coprocess?  (|&! is rather ugly.)

There's one more issue I'd like to resolve concerning this
functionality, which I didn't get working in my patch the way I wanted
it.  I think it actually adds the job to the job table and then deletes
it again, whereas it would be preferable to have the job never entered
into the table at all.  I think my patch is OK w.r.t. keeping %+ and %-
the same, though.

-zefram


  reply	other threads:[~1995-11-03 16:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-03 11:28 Peter William Stephenson
1995-11-03 11:36 ` Richard Coleman
1995-11-03 15:05   ` Zoltan Hidvegi
1995-11-03 15:47     ` Zefram [this message]
1995-11-03 14:32 ` Chip Salzenberg

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=22061.199511031547@stone.dcs.warwick.ac.uk \
    --to=a.main@dcs.warwick.ac.uk \
    --cc=zsh-workers@math.gatech.edu \
    /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).