🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1297

Re: Background writes in csh

#1297
From: Harald.Eikrem
Date: Mon, 01 Oct 1990 18:52
34 lines
2174 bytes
Joe Wells <jbw@bu.edu> responding to Gordon C. Galligher <gorpong@ping.uucp>:
================
   >
   >   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.
   >
   >I've also had this problem on the IBM RS/6000.  Except in this case
   >typing fg just hangs the shell.

   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
   the same thing.  When they use history | less  it works every time.

I suspect you're wrong, because there is a known problem with Sun's csh
that causes this problem with pipelines in general.  It's a race condition
during the setup of the pipeline by the csh.  I suspect that less works
because it has a larger executable file and thus takes slightly longer for
SunOS to load.

I don't know about the problem on the IBM RS/6000.
================


I dont know.  I experience this problem somewhat different on a Sun Sparc
490 with os 4.0.3.  I always use tcsh 5.12, btw.  I think in nearly half
the cases I pipe something into less, less hangs indefinitely and I have to
suspend it with a ^Z and then fg.  Nothing whatsoever gets written to my tty
until I hit ^Z.  I dont regularly use `more', but have not seen this behaviour
with that one as of yet.  What is going on?

--Harald E
Technical Details
Message-ID: <90Oct1195212*Harald.Eikrem@elab-runit.sintef.no>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!apple!snorkelwacker!bloom-beacon!eru!hagbard!sunic!nuug!sigyn.idt.unit.no!news
References: <1990Sep19.203803.25798@cs.umn.edu>, <1990Sep20.185147.14158@ping.uucp>, <JBW.90Sep21223022@bucsf.bu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!decwrl!apple!snorkelwacker!bloom-beacon!eru!hagbard!sunic!nuug!sigyn.idt.unit.no!news
From: Harald.Eikrem@elab-runit.sintef.no
Newsgroups: comp.unix.shell
Subject: Re: Background writes in csh
Message-ID: <90Oct1195212*Harald.Eikrem@elab-runit.sintef.no>
Date: 1 Oct 90 18:52:11 GMT
References: <1990Sep19.203803.25798@cs.umn.edu>,
 <1990Sep20.185147.14158@ping.uucp>, <JBW.90Sep21223022@bucsf.bu.edu>
Sender: news@idt.unit.no (Usenet news admin)
Organization: ELAB-RUNIT (SINTEF), Trondheim, Norway.
Lines: 34
In-Reply-To: jbw@bucsf.bu.edu's message of 22 Sep 90 02:30:22 GMT