🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.software
Article #1636

Problems with "open" and "pwd" commands

#1636
From: Kennedy Lemke
Date: Thu, 21 Jan 1993 23:09
52 lines
2510 bytes
Hello.  Two problems since our upgrade to 3.0:

Problem #1: The "open" command.  We use an automount entry for
home directories that looks like this:

	/usr/etc/autonfsmount -tm 10 -tl 43200 -a /private /u userhomes

"userhomes" is an nis map (yes, the nexts are running yp) that maps
user names to hostname/directory paths.  All user accounts, regardless
of which disk they actually live on, can be accessed from any of our
machines by accessing "/u/username".  This has worked (and is still
working) just fine.  The problem occurs under version 3.0 with the
"open" command.  For example:

	[158]aslan--> open .bashrc
	open: can't stat file: /auto4000143/.bashrc
	[159]aslan--> open /u/lemke/.bashrc	<---THIS ONE WORKS
	[160]aslan--> 

So you can't use the "open" command to access a directory in
your home directory without specifying an absolute pathname
that starts with "/u".  Under 2.{1,2}, the "open" command worked
fine.  If you're in your home directory and you say "pwd", what
returns is something like "/private/auto4000143".  The "open"
command clearly appears to be leaving off the "/private" part
of the pathname when trying to open file.  Anyone know why?

Problem #2: using "bash" version 1.12, "pwd" (which is not aliased
to anything) gives strange behavior.  Sometimes it says the "right"
thing; other times it returns an empty line.  For example:

	[140]aslan--> pwd
	/private/auto4000143
	[141]aslan--> pwd

	[142]aslan--> pwd

	[143]aslan--> pwd
	/private/auto4000143
	[144]aslan-->

Anyone know why?  Thank you.

				Kennedy Lemke
    ,    ,     ___  ______	Computer Systems Manager
   /|   /|     /      /     /	Postmaster && Domain administrator &&
  / |  / |    /      /     /	News administrator && Network adminstrator
 /  | /  |   /      /     /	Matsushita Information Technology Laboratory
/   |/   | _/_     /     /____	182 Nassau Street, Third Floor

Work Phone: (609) 497-4600	Princeton, New Jersey  08542
Fax Phone:  (609) 497-4013	Email: lemke@MITL.COM
Technical Details
Message-ID: <1993Jan21.230936.28745@MITL.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!newsserver.jvnc.net!mitl.com!lemke

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.software,comp.sys.next.sysadmin
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!newsserver.jvnc.net!mitl.com!lemke
From: lemke@MITL.COM (Kennedy Lemke)
Subject: Problems with "open" and "pwd" commands
Message-ID: <1993Jan21.230936.28745@MITL.COM>
Originator: lemke@narnia.MITL.COM
Sender: news@MITL.COM
Organization: Matsushita Information Technology Laboratory, Princeton, NJ
Date: Thu, 21 Jan 1993 23:09:36 GMT
Lines: 52