🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1411

Re: Background writes in csh

#1411
From: Joe Wells
Date: Sun, 07 Oct 1990 06:18
33 lines
1850 bytes
lindner@cs.umn.edu (Paul Lindner) writes:

   gorpong@ping.uucp (Gordon C. Galligher) writes:

   >>   alias ls 'ls -FC \!* |more'
   >>
   >>This works fine, however sometimes it stops both tasks and puts them in 
   >>the background, (this is on various Suns using csh and tcsh).  Typing
   >>fg restarts the listing.  This is really irritating, typing fg and all.

   >More(1) is the problem here.  I have not quite figured it out, but I had a 
   >similar problem when my users would type:  history | more and it would do
   >[.........]

   More(1) isn't the problem here, I tried using less for a while but I still
   got the infamous:

   Stopped (tty output)
   [1] 21298 21299

   So, it must be someplace in the shell.

I finally remembered the problem:  Sun's (and other vendor's) csh is based
on an early BSD csh that depended on the original semantics of vfork.
However, Sun made vfork behave the same as fork, hence it is no longer
certain that the first child the csh forks in a pipeline executes setpgrp
before the csh changes the pgrp of the tty device.

I can't remember if Sun ever fixed this one, but it's been around for
several years.

-- 
Joe Wells <jbw@bu.edu>
Technical Details
Message-ID: <JBW.90Oct7021831@bucsf.bu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!uunet!bu.edu!nntp-read!jbw
References: <1990Sep19.203803.25798@cs.umn.edu> <1990Sep20.185147.14158@ping.uucp> <1990Sep25.225951.3550@cs.umn.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!uunet!bu.edu!nntp-read!jbw
From: jbw@bucsf.bu.edu (Joe Wells)
Newsgroups: comp.unix.shell
Subject: Re: Background writes in csh
Message-ID: <JBW.90Oct7021831@bucsf.bu.edu>
Date: 7 Oct 90 06:18:31 GMT
References: <1990Sep19.203803.25798@cs.umn.edu>
 <1990Sep20.185147.14158@ping.uucp> <1990Sep25.225951.3550@cs.umn.edu>
Sender: news@bu.edu.bu.edu
Distribution: comp
Organization: Boston University Computer Science Department
Lines: 33
In-reply-to: lindner@cs.umn.edu's message of 25 Sep 90 22:59:51 GMT