🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #987

Re: SVr3 csh

#987
From: Rob Frye
Date: Mon, 27 Feb 1989 14:05
22 lines
1335 bytes
In article <313@hsi86.hsi.UUCP> stevens@hsi.UUCP (Richard Stevens) writes:
>I got the C shell with SVR3.2 *directly* from AT&T and it's severly
>brain damaged.  Doesn't even have pushd/popd.  Someone told me

SCO Xenix csh doesn't have pushd/popd "internally", but their standard
".cshrc" has an easy set of macro aliases that do (almost) the same thing.
I've expanded them slightly:

    if (! $?_d) set _d = ()
	alias	popd	'cd $_d[1]; echo ${_d[1]}:; shift _d'
	alias	pushd	'set _d = (`pwd` $_d); cd \!*'
	alias	swapd	'set _d = ($_d[2] $_d[1] $_d[3-])'
	alias	flipd	'pushd .; swapd ; popd'
	alias	fd	'flipd'
	alias	sd	'echo $_d'
	alias	cleard	'set _d = ()'
    endif
-- 
Rob Frye
NetExpress Communications, Inc.		Phone: (703)749-2234
1953 Gallows Road, Suite 300		uucp:  uunet!netxcom!rfrye
Vienna, VA   22180
Technical Details
Message-ID: <1161@netxcom.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!bionet!ames!ucsd!sdcsvax!ucsdhub!esosun!seismo!sundc!netxcom!rfrye
References: <20912@lll-winken.LLNL.GOV> <9711@smoke.BRL.MIL> <313@hsi86.hsi.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!bionet!ames!ucsd!sdcsvax!ucsdhub!esosun!seismo!sundc!netxcom!rfrye
From: rfrye@netxcom.UUCP (Rob Frye)
Newsgroups: comp.bugs.sys5
Subject: Re: SVr3 csh
Message-ID: <1161@netxcom.UUCP>
Date: 27 Feb 89 14:05:36 GMT
References: <20912@lll-winken.LLNL.GOV> <9711@smoke.BRL.MIL> <313@hsi86.hsi.UUCP>
Reply-To: rfrye@netxcom.UUCP (Rob Frye)
Organization: NetExpress Communications, Inc., Vienna, VA
Lines: 22