🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #219

ksh88b bug

#219
From: Anton Hartl
Date: Wed, 08 Aug 1990 14:57
25 lines
1286 bytes
I've found a bug in ksh88b that occured when I started ksh to execute
a shell script in a C shell environment (with neither a .profile nor
$PWD set).

I boiled the bug down to the following line

	ksh -c "cd .. ; pwd"

which produces in that case (no .profile, no PWD in the environment)

	ksh: pwd: cannot access parent directories

If you setenv PWD to something (doesn't seem to matter what you set
it to) the line above produces the expected result, i.e. the
complete path of "..".

Somehow ksh does not set its own current directory properly.

If anyone has a fix for this, I'll be pleased to see it.

-Toni

--
Anton Hartl | hartl@.informatik.tu-muenchen.de, ...!unido!tumult!hartl
Only those who attempt the absurd will achieve the impossible. -Escher
Technical Details
Message-ID: <3844@tuminfo1.lan.informatik.tu-muenchen.dbp.de>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!snorkelwacker!ira.uka.de!fauern!tumuc!lan!hartl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!snorkelwacker!ira.uka.de!fauern!tumuc!lan!hartl
From: hartl@lan.informatik.tu-muenchen.dbp.de (Anton Hartl)
Newsgroups: comp.bugs.sys5
Subject: ksh88b bug
Message-ID: <3844@tuminfo1.lan.informatik.tu-muenchen.dbp.de>
Date: 8 Aug 90 14:57:25 GMT
Sender: news@lan.informatik.tu-muenchen.dbp.de
Reply-To: hartl@informatik.tu-muenchen.de (Anton Hartl)
Organization: Inst. fuer Informatik, TU Muenchen, W. Germany
Lines: 25