zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Drazen Kacar <dave@srce.hr>, zsh-workers@math.gatech.edu
Subject: Terminal initialization and (non-)interactive shells
Date: Sat, 30 Jan 1999 12:41:35 -0800	[thread overview]
Message-ID: <990130124135.ZM13173@candle.brasslantern.com> (raw)
In-Reply-To: <19990130192746.A20234@jagor.srce.hr>

On Jan 30,  7:27pm, Drazen Kacar wrote:
} Subject: Re: PATCH: (more) Re: PATCH: 3.1.5* & 3.0.5: Re: strange xterm & 
}
} Bart Schaefer wrote:
} 
} > (For Drazen) Is it desirable to ALWAYS do this?  For a backgrounded shell,
} > calling ioctl() on a tty device will usually result in a SIGTTOU stopping
} > the process.
} 
} Just for the first interactive shell on the terminal. Background shell
} doesn't fall in that category. But why should a background shell attempt
} to initialize the terminal? It seems to me that background shell shouldn't
} call that function. On a related matter, does subshell initialize terminal?

Every zsh, foreground or background, calls init_io(), which in turn does all
the tty initialization if isatty(0).  There's no test for `interactive'.

This is, arguably, wrong.

Another init_io(), but this time only for interactive shells, happens if/when
"exec < /dev/foo" is run and foo is a tty device.

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



  reply	other threads:[~1999-01-30 20:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-27 22:26 strange xterm & zsh behaviour Drazen Kacar
1999-01-28  5:46 ` Bart Schaefer
1999-01-28  9:38   ` Drazen Kacar
1999-01-29  3:47     ` Drazen Kacar
1999-01-29  9:16       ` PATCH: 3.1.5* & 3.0.5: " Peter Stephenson
1999-01-29 18:59         ` PATCH: (more) " Bart Schaefer
1999-01-29 19:08           ` Bart Schaefer
1999-01-30  5:54           ` Drazen Kacar
1999-01-30 12:43             ` Peter Stephenson
1999-01-30 12:51               ` Peter Stephenson
1999-01-30 18:04                 ` Bart Schaefer
1999-01-30 18:27                   ` Drazen Kacar
1999-01-30 20:41                     ` Bart Schaefer [this message]
1999-02-01  0:50                       ` Terminal initialization and (non-)interactive shells Drazen Kacar
1999-02-01  1:24                         ` Bart Schaefer
1999-02-03 11:08                   ` PATCH: 3.1.5-pws-6: ttys revisited Peter Stephenson
1999-01-30 13:29               ` PATCH: (more) Re: PATCH: 3.1.5* & 3.0.5: Re: strange xterm & zsh behaviour Drazen Kacar

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=990130124135.ZM13173@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=dave@srce.hr \
    --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).