[6352] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Problem with csh 5.2.6?

daemon@ATHENA.MIT.EDU (Steve \"Stevers!\" Coile)
Tue Nov 26 22:26:11 1996

Date: Tue, 26 Nov 1996 22:25:31 -0500 (EST)
From: "Steve \"Stevers!\" Coile" <scoile@patriot.net>
To: redhat-list@redhat.com
cc: linux-admin@vger.rutgers.edu
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

We have a user who's experiencing difficulties with the BSD C shell
(5.2.6) shipped with Red Hat Linux 3.0.3, running under RHL303 (with
unofficial shadow password support) and the 1.2.13 kernel.  Occasionally,
the user experiences the following:

% cat .cshrc | cat                           # a simple example
csh: setpgid error.

Suspended (tty output)
[1] 26014 26015
% jobs
[1]  - Done                   cat .cshrc |
       Suspended (tty output) cat
% jobs
[1]  - Done                   cat .cshrc |
       Suspended (tty output) cat

Note the "setpgid error".  Note that Suspend (Control-Z) was not pressed
to produce the "Suspended" message.  Note that, even though "jobs"
reports the job done, the job persists.

This problem does not occur if the user uses tcsh.

The problem occurs even under a bare login shell (i.e. without any
user configuration scripts).  /etc/csh.cshrc contains three "setenv"
statements to set HOSTNAME, NNTPSERVER, and PATH.

The problem does not appear to be tied to the user's account, since I
can recreate it under my own account.

Of course, the obvious solution is to tell the user to use tcsh, but
frankly, I don't think it's my job to tell my users what shells to use.
I'd rather correct this problem and allow him to use csh if he chooses to.

Has anyone else encountered this problem?  Anyone have a solution?

It might be worth noting that we're *not* using Red Hat's user group
convention (each user has his own group, which is the user's login group).
We use a conventional UNIX user/group scheme: every user is part of a
larger group (in our case, a group called "users").

/bin/csh is not set-UID or set-GID:

% ls -l /bin/csh
-rwxr-xr-x   1 root     root       104776 Feb 25  1996 /bin/csh

--
    Steve Coile           P a t r i o t  N e t      Systems Engineering
 scoile@patriot.net      Patriot Computer Group        (703) 277-7737


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post