Path: utzoo!attcan!utgpu!watmath!cantuar!greg From: greg@cantuar.UUCP (G. Ewing) Newsgroups: comp.unix.wizards Subject: Re: getcwd() and friends. Message-ID: <1078@cantuar.UUCP> Date: 17 Apr 89 02:00:26 GMT References: <3675@ficc.uu.net> <14689@rpp386.Dallas.TX.US> <811@mtxinu.UUCP> <4438@psuvax1.cs.psu.edu> <2001@unisoft.UUCP> Reply-To: greg@cantuar.UUCP (G. Ewing) Organization: University of Canterbury, Christchurch, New Zealand Lines: 28 The Grey Wolf (greywolf@unisoft.UUCP) writes: >Do you really mean "rather than" as "instead of"? I like the idea of Perhaps open() should be the only system call that takes a pathname, all others taking a file descriptor, with library routines to provide the rest. >how would you change the mode of a file that was mode >000? Open it with O_NOTHING, of course. ># Just execute the directory by chdir-ing to it! Once I created a directory called emacs to put my .el files in. Then I wondered why the emacs command wouldn't work. The shell saw this thing in the search path called emacs with the x bit on, and tried to execute it... I guess auto-chdir isn't such a silly idea. On the Mac, you run a program by double clicking it, and you open a folder by double-clicking it. You can also run a program by double clicking one of its documents. What would that correspond to in a shell? Greg Ewing Internet: greg@cantuar.uucp Spearnet: greg@nz.ac.cantuar Telecom: +64 3 667 001 x8357 UUCP: ...!{watmath,munnari,mcvax,vuwcomp}!cantuar!greg Post: Computer Science Dept, Univ. of Canterbury, Christchurch, New Zealand Disclaimer: The presence of this disclaimer in no way implies any disclaimer.