SVr3 csh
Rob Frye
rfrye at netxcom.UUCP
Tue Feb 28 00:05:36 AEST 1989
In article <313 at hsi86.hsi.UUCP> stevens at 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
More information about the Comp.bugs.sys5
mailing list