Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!kddlab!cs.titech!wnoc-tyo-news!sranha!srava!erik From: erik@srava.sra.co.jp (Erik M. van der Poel) Newsgroups: comp.unix.wizards Subject: Re: file attributes Message-ID: <1750@sranha.sra.co.jp> Date: 21 Jun 91 02:42:02 GMT References: <1743@sranha.sra.co.jp> <1991Jun20.021749.12011@gpu.utcs.utoronto.ca> Sender: news@sranha.sra.co.jp Organization: Software Research Associates, Inc., Japan Lines: 25 Nntp-Posting-Host: srava > Let's say you have a mailbox, and you want it to be read by > /usr/ucb/mail. You put as the first line: > #!/usr/ucb/mail -f What if I have an ordinary text file (say, a README)? Some people like to use `less', some people use `vi', and yet other people use `emacs'. The README file may be accessed by many different people, since Unix is a multi-user system. In this case (i.e. README), it might be better to just say that this is a text file, in the file attributes (i.e. the metadata (the data is the file itself)). Then the `user agent' can look at the metadata, and do the right thing, which may depend on the user's preferences. > Unfortunately, in the second case, Mail does not understand what > the #! is doing at the begining of its file, and it gets pissed off. Indeed. Many programs will suddenly stop working if we start adding standardized metadata to the files themselves. That's why we need the new system call. - -- Erik M. van der Poel erik@sra.co.jp Software Research Associates, Inc., Tokyo, Japan TEL +81-3-3234-2692