scsh-users
[Top] [All Lists]

Re: file-attributes, fileinfo:mode trivia

To: gunter@netcom.com
Subject: Re: file-attributes, fileinfo:mode trivia
From: Olin Shivers <shivers@clark.lcs.mit.edu>
Date: Sun, 13 Nov 94 18:32:56 -0500
Cc: scsh@martigny.ai.mit.edu
Reply-to: shivers@mintaka.lcs.mit.edu
   The scsh manual says:
           (define-record fileinfo
           ...     
             mode      ; File's permission bits.

   At least on my system (SunOS 4.1.1), the file-attributes procedure
   returns the same mode as stat();  mode includes the setuid and setgid
   bits as well as the object's type.  The current behavior might be
   better documented 
           (define-record fileinfo
           ...     
             mode      ; File's type and permission, setuid, and setgid bits   

   However, since scsh cleans up the system call interface in other ways,
   perhaps the redundant type bits in the mode field should be removed.
   What do y'all think?

It's not a bug, it's a feature. As you point out, it should be documented.
    -Olin



<Prev in Thread] Current Thread [Next in Thread>