home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!ncar!noao!amethyst!organpipe.uug.arizona.edu!news
- From: jtillema@hindmost.lpl.arizona.edu (John Tillema)
- Newsgroups: comp.sys.amiga.applications
- Subject: "Better" CD command
- Keywords: unix,cd
- Message-ID: <1993Jan22.055033.10899@organpipe.uug.arizona.edu>
- Date: 22 Jan 93 05:50:33 GMT
- Sender: news@organpipe.uug.arizona.edu
- Organization: Lunar & Planetary Laboratory, Tucson AZ.
- Lines: 32
-
-
- With the talk of better CD's for the amiga and ways of getting
- cd to do . and .., I thought I'd clean up the program I'd been
- using and release it to ya. I tried the unixdirs program that
- was mentioned as it'd be nice to use that with all the normal
- amigados commands, but it didn't seem to work on mine, looks like
- it might not run on 2.1. This command does require amigados 2.0 or
- better to run (it should quit nicely if you try running it on less
- than 2.0). The program is called JCD and is on amiga.physik.unizh.ch
- in /amiga/new. It is about 8K in size, written in SAS/C v6.1, don't
- know how efficient it is, but don't see any time difference between
- running it and the normal cd on my 68k amiga....
-
- What it does... It will convert a unix path into a standard amiga
- path, and then change you to there. I tried to stick to as close to
- true unix actions as possible. Here is a brief summary of the differences.
- JCD AmigaDOS
- cd cd $HOME
- cd . cd
- cd .. cd /
- cd /work cd work:
- (It even handles those really nasty paths like cd .././././tst/.././.././var
- correctly)
-
- I have used versions of this program for over a year now with no troubles
- so far, but if any are noticed, let me know...
-
- Hope this helps some poor soul like me whose fingers would
- automatically type "cd ../tst" instead of "cd /tst"!
-
- John
- jtillema@panda.lpl.arizona.edu
-