home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15387 < prev    next >
Encoding:
Text File  |  1993-01-10  |  2.4 KB  |  48 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!zaphod.mps.ohio-state.edu!caen!umeecs!nova!ellis
  3. From: ellis@nova.gmi.edu (Stew Ellis)
  4. Subject: Re: looking a utility to chdir without typing full path
  5. Message-ID: <ellis.726680574@nova>
  6. Sender: news@zip.eecs.umich.edu (Mr. News)
  7. Organization: GMI Engineering&Management Institute, Flint, MI
  8. References: <1ikvt1INNqq2@usenet.INS.CWRU.Edu> <1993Jan9.005220.19993@cs.sandia.gov> <18350@autodesk.COM>
  9. Date: Sun, 10 Jan 1993 15:42:54 GMT
  10. Lines: 36
  11.  
  12. In article <1ikvt1INNqq2@usenet.INS.CWRU.Edu> cl820@cleveland.Freenet.Edu (Wei Jin Mai) writes:
  13. >
  14. >    I just switch to Unix from Dos. Is there a utility or shell that let you
  15. >change directory without typing full path? For example: chdir abc changes   
  16. >working directory to /usr/local/src/abc .
  17. >-- 
  18.  
  19. (Warning, this message may not thread right, I have clipped the orginal
  20. message from one of the followups.)
  21.  
  22. The other followups focused on the use of $cdpath.  If the original poster
  23. was simply concerned with saving keystrokes, he should be told that UNIX
  24. will allow wildcards embedded within pathnames as long as the expanded paths
  25. are unique.  For example, on many machines I use 'cd /u*/lo*/b*' will change
  26. me to /usr/local/bin.  Before I had access to a reasonable shell I
  27. frequently used this.  Any reasonable shell will also allow aliases, so the
  28. user could assign a series of aliases to cd to frequently entered but hard
  29. to type directories.  Also any reasonable shell will do directory,file and
  30. command completion when you type <TAB>, so 'cd /u<TAB>lo<TAB>b<TAB>' will
  31. complete to the same directory name as above.  
  32.  
  33. In this day and age no one should use Bourne shell (/bin/sh) or the
  34. unadorned csh as their login shell, even though as much shell programming as
  35. possible ought to be confined to /bin/sh.  ksh almost cuts it, but lacks
  36. command completion, plus the completion keystrokes are clumsier.  Every
  37. system should have one of the freely available(another problem with ksh)
  38. shells tcsh, bash or zsh installed to be used as a login shell.
  39.  
  40. In UNIX there are always alternative ways to skin cat(1v).  :)
  41.  
  42.  
  43. --
  44.                                                           ___________________
  45.   R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  46.   Humanities & Social Science,  GMI Eng.& Mgmt. Inst.   /        / /  /  / /
  47.   Flint, MI 48504      ellis@nova.gmi.edu              /________/ /  /  / /
  48.