root@eagle_snax.UUCP (Operator) (12/19/86)
this is a test from Sun in Billerica
epg@cwi.nl (Ed Gronke) (02/09/88)
A query for people out there about test(1) and the interpretation of a particular phrase on the manual page, specifically, "-w file true if the file exists and is writeable" (4.3 BSD) "-w file true if file exists and is writable" (Sun OS 3.2) Now, these same options do two different things on Sun's running Sun OS and on Vaxes (and CCI's) running 4.3 when applied to a writeable directory (like /tmp) Try the following -- (shell script) if /bin/test -w /tmp then echo write permission on /tmp else echo no write permission on /tmp fi On Sun's, this returns the message "write permission on /tmp" and on 4.3 it returns "no write permission on /tmp". Now, on 4.3, the reason it does it is because the test for "writeability" (sp?) is to attempt to open the file for writing (which of course fails for a directory). I don't have the Sun source to check how they do it. But, which is right (or write -:))? (I think Sun is right because of the following question? ) And, if 4.3 is right, how do you test for write permission on a directory in the shell? -- Ed Gronke (epg@mcvax.cwi.nl) (Centrum voor Wiskunde en Informatica)
new@lilink.UUCP (New User) (01/14/89)
This is a test.
tom@viewlog.UUCP (Thomas Yen) (06/09/90)
just a test.
andy@cats.com (Andy Davidson) (06/20/91)
In article <1991Jun19.214339.7255@cats.com> andy@cats.com (Andy Davidson) writes: >I need some help with the link editor. What I want to do is find a way >to ship to my customers my product in binary formated but provide a >way for them to unlink some of my functions and replace them with >functions of there own design. > >I have been able to do this sucessfully using gnu dld (dynamic link >and load) libraries. But this is not really what I want for the >following reasons > > 1) the dynamic link and loading happens every time the product >starts. My users should only have to do this one time. They should >only have to doctor the program once > > 2) I do not want to have to link in the dynamic link load lib. My >program is already quite large > > >It would be nice but not required if this solution also worked in DOS > >thanks in advance >Andy >-- > >----------------------------------------------------------------- > "bede-bede-bede Thats all Folks" > Porky Pig -- ----------------------------------------------------------------- "bede-bede-bede Thats all Folks" Porky Pig