Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!unmvax!nmtsun!wbnsnsr From: wbnsnsr@nmtsun.nmt.edu (William Norris) Newsgroups: comp.sys.amiga Subject: Re: Hidden bit Keywords: protect hidden ls Message-ID: <1527@nmtsun.nmt.edu> Date: 27 Nov 88 03:07:48 GMT References: <999@hub.ucsb.edu> Reply-To: wbnsnsr@nmtsun.nmt.edu (William Norris) Organization: New Mexico Tech, Socorro NM Lines: 34 In article kim@amdahl.uts.amdahl.com (Kim DeVaughn) writes: >In article <999@hub.ucsb.edu>, dougp@sbphy.ucsb.edu writes: >> The 1.3 manual doesn't list the protection flags, List and >> protect only admit the existance of 7 (a suspicious number) >> flags, Hidden noticably missing from the list. So does the >> hidden bit exist? has it been removed or just "hidden"? If it >> exists, how do I set it? I want to make all my .info files hidden. > >I read about the "hidden" attribute someplace too (AmigaWorld's series >on 1.3 maybe ?), but the 1.3 Protect command doesn't support it. Using the Omega 7 version of Workbench, list shows eight bit positions. The highest is supposed to be for the hidden attribute. When I issue: PROTECT ADD H, protect does in fact set the hidden bit. >I also checked in my newly received 1.3 includes (thanks, Lauren!), and >it's not defined in them either ... only the other seven: sparwed (gee, >that's even pronouncable ... sparwed). They're not in mine, either. So I went into libraries/dos.h and added: #define FIBB_HIDDEN 7 #define FIBF_HIDDEN (1 << FIBB_HIDDEN) As far as the original intent of the question (making .info files hiddent), I'm almost finished my ls UNIX equivalent (defaults to NOT listing .info files and doesn't ignore the hidden bit). William B. Norris IV wbnsnsr@nmtsun.nmt.edu (William Norris) | /// Seulement ``It'll be out RSN.'' |\\ /// l'Amiga peut -- ANY hardware manufacturer/software publisher. | \\// vous l'offrir.