🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

3 total messages Started by ghenniga Thu, 30 Apr 1992 00:14
Epoch problem in C-Shell.
#1509
Author: ghenniga
Date: Thu, 30 Apr 1992 00:14
30 lines
1952 bytes
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.
For example if I log in and do

	cd temp
	emacs temp.dat

epoch still seems to think it's in the root directory. You can explicitly
tell epoch the subdirectory, eg.,

	emacs temp/temp.dat

and it works fine. This seems to happen with the full-blown version of
epoch or the version of emacs that comes with it. By the way the "emacs"
command I used above is just a logical pointer to the epoch binary.
	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

Any help on this one would be appreciated!
Thanks,
--
Gary Hennigan
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=++=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
+= PhD Student, Computational Electromagnetics  | Member: Utilitarian  +=
+= New Mexico State University                  | .signature club      +=
+= Phone: (505)646-4808                          ----------------------+=
+= email: ghenniga@NMSU.Edu                                            +=
Re: Epoch problem in C-Shell.
#1511
Author: Neal Becker
Date: Thu, 30 Apr 1992 14:59
15 lines
1544 bytes
>>>>> On 30 Apr 92 00:14:18 GMT, ghenniga@NMSU.Edu said:


	ghenniga> I manage an HP9000 model 720 here at NMSU and I've run into a strange
	ghenniga> problem, whenever someone logs on at the console and their default shell is
	ghenniga> C-Shell epoch doesn't seem to want to read files from their subdirectories.
	ghenniga> For example if I log in and do

You'll see this problem with emacs too.  It's the PWD environment
variable.  Something sets this when you login.  It's not kept up to
date by the shell.  You can just unsetenv it.

I can't figure out where this silly thing is set. DEAR HP--STOP
SETTING PWD IF YOU DON'T INTEND TO KEEP IT VALID!!! This also screw up
some other things, like rcs if I remember correctly.
Re: Epoch problem in C-Shell.
#1513
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads