🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #1513

Re: Epoch problem in C-Shell.

#1513
From: Mike O'Connor
Date: Thu, 30 Apr 1992 15:31
42 lines
2845 bytes
In article <GHENNIGA.92Apr29171418@ampere.ampere> ghenniga@NMSU.Edu writes:
:
:I manage an HP9000 model 720 here at NMSU and I've run into a strange
:problem, whenever someone logs on at the console and their default shell is
:C-Shell epoch doesn't seem to want to read files from their subdirectories.

It sounds like somewhere in your csh inits (/etc/csh.login, ~/.cshrc,
~/.login), PWD is getting set.  It doesn't appear to be a part of the
login inits as shipped by HP (tested on an HP 9000/720 running HP-UX
8.07).  emacs/epoch rely on this environment variable, and this is in
the emacs FAQ:

77: Why does Emacs start up using the wrong directory?

  Most likely, you have an environment variable named PWD that is set to a
  value other than the name of your current directory.  This is most
  likely caused by using two different shell programs.  "ksh" and (some
  versions of) "csh" set and maintain the value of the PWD environment
  variable, but "sh" doesn't.  If you start sh from ksh, change your
  current directory inside sh, and then start Emacs from inside sh, PWD
  will have the wrong value but Emacs will use this value.  See the
  etc/OPTIONS file for more details.

  Perhaps an easier solution is not to use two shells.  The "chsh" program
  can often be used to change one's default login shell.

:	Seems to me it must be a problem with C-Shell on the HP because the
:Korn Shell doesn't exhibit this behavior, but I thought someone here may be
:able to help

I strongly suggest that you get tcsh for the HP, if possible -- it
sets and maintains the PWD environment variable properly, along with
other, more significant, enhancements.

						...Mike


-- 
 Michael J. O'Connor          |  Internet:  mjo@fmsrl7.srl.ford.com
 Ford Motor Company, USA      |  UUCP:      ...!uunet!fmsrl7!mjo
 P.O. Box 2053, ECC MD-7      |  Voice:     +1 (313) 390-4008
 Dearborn, MI  48121-2053     |  Fax:       +1 (313) 845-0576
Technical Details
Message-ID: <1992Apr30.153128.26455@fmsrl7.srl.ford.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!jhunix.hcf.jhu.edu!fmsrl7!pms704.pms.ford.com!moconnor
References: <GHENNIGA.92Apr29171418@ampere.ampere>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,4bcbe4514fb9b213
X-Google-Attributes: gidfc7ee,public
X-Google-Thread: 114b0c,4bcbe4514fb9b213
X-Google-Attributes: gid114b0c,public
X-Google-ArrivalTime: 1992-04-30 08:31:28 PST
Newsgroups: gnu.epoch.misc,comp.sys.hp
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!jhunix.hcf.jhu.edu!fmsrl7!pms704.pms.ford.com!moconnor
From: mjo@Quality.TA.Ford.COM (Mike O'Connor)
Subject: Re: Epoch problem in C-Shell.
Message-ID: <1992Apr30.153128.26455@fmsrl7.srl.ford.com>
Originator: moconnor@pms704.pms.ford.com
X-Disclaimer: Not an official spokesperson for Ford Motor Co.
Sender: usenet@fmsrl7.srl.ford.com (Unix News)
Reply-To: Mike O'Connor <mjo@fmsrl7.srl.ford.com>
Organization: "Fordz"
References: <GHENNIGA.92Apr29171418@ampere.ampere>
Date: Thu, 30 Apr 1992 15:31:28 GMT
Lines: 42