Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!hp4nl!philmds!leo From: leo@philmds.UUCP (Leo de Wit) Newsgroups: comp.unix.wizards Subject: Re: getcwd() and friends. Message-ID: <997@philmds.UUCP> Date: 8 Apr 89 09:10:29 GMT References: <3675@ficc.uu.net> <14689@rpp386.Dallas.TX.US> <811@mtxinu.UUCP> <4438@psuvax1.cs.psu.edu> <2001@unisoft.UUCP> Reply-To: leo@philmds.UUCP (Leo de Wit) Organization: Philips I&E DTS Eindhoven Lines: 26 In article <2001@unisoft.UUCP> greywolf@unisoft.UUCP (The Grey Wolf) writes: [] |# |# P.S. Given that directories are chdir-able iff they are marked |# executable, why do sh/csh/et.al. require that you type "cd"?? |# Just execute the directory by chdir-ing to it! | |At the College of Marin, some friends of mine (and later myself) modified the |4.1 c shell (Yeah, I *know* it's not everyone's favourite, but it IS mine! |(no accounting for taste?)) to do just that. I later incorporated the |modification into the 4.3 csh. It depended upon a variable called "autogoto". | |bit of trivia |my roommate (a main writer of dsh) prefers not to use this feature, |since it has stung him too many times. He administers a system on which such |users as "ls" exist, for example. He's in the main users directory, and types |"ls" and receives nothing but a prompt. Imagine his initial shock -- |"OH NO! WHERE ARE ALL THE USERS' DIRECTORIES!!!???"...) Seems this system administrator has his PATH wrong. What if I, for example, $ ln -s /etc/shutdown /tmp/ls and he types 'ls' in /tmp? Leo.