Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: Subject: RE: TAB-completion funny with dll files Date: Thu, 14 Apr 2005 13:08:00 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <20050414113041.GA5908@cygbert.vinschen.de> Message-ID: X-OriginalArrivalTime: 14 Apr 2005 12:08:13.0862 (UTC) FILETIME=[A240FC60:01C540EA] ----Original Message---- >From: Corinna Vinschen >Sent: 14 April 2005 12:31 >> Does anyone know why tab-completion doesn't work for .dll files? ...snip... >> What makes dlls so special? > > Nothing? > > $ ls -l /bin/cygw > > results in > > $ ls -l /bin/cygwin1.dll > > in both, tcsh and bash. So what? Bizarre. Doesn't work right for me. I first noticed this because "cp i686-pc-cygwin/winsup/cygwin/new-[TAB]" didn't do anything for me. Let me show you what happens when I try your example: -------------------------------------- dk AT mace /artimi/firmware> ls /bin/cygw* /bin/cygwin1-1.5.11.dll /bin/cygwin1-20050404.dll /bin/cygwin1-20040103.dll /bin/cygwin1-20050414.dll /bin/cygwin1-20040719.dll /bin/cygwin1-clip-debug.dll /bin/cygwin1-20041201.dll /bin/cygwin1.dll /bin/cygwin1-20050228.dll /bin/cygwin1.dll.current /bin/cygwin1-20050302-finit.dll /bin/cygwin1.dll.gcc /bin/cygwin1-20050302.dll /bin/cygwin1.dll.vec /bin/cygwin1-20050303.dll /bin/cygwin1.dll.working /bin/cygwin1-20050404-b.dll dk AT mace /artimi/firmware> ls /bin/cygwin1.dll.[TAB-TAB] cygwin1.dll.current cygwin1.dll.vec cygwin1.dll.gcc cygwin1.dll.working dk AT mace /artimi/firmware> ls /bin/cygwin1.dll. -------------------------------------- Hm, let me see what the perms look like on one that works and one that doesn't: -------------------------------------- dk AT mace /artimi/firmware> ls -la /bin/cygwin1.dll.v[TAB] -rwx------+ 1 dk Domain U 623104 Nov 11 2000 /bin/cygwin1.dll.vec dk AT mace /artimi/firmware> ls -la /bin/cygwin1-c[TAB-TAB-TAB-WHY-DOESN'T-IT-WORK-GODDAMIT-oh-well-i'll-just-ha ve-to-type-it-manually]lip-debug.dll -rwxr-xr-x 1 dk Domain U 8520815 Mar 4 17:30 /bin/cygwin1-clip-debug. dll dk AT mace /artimi/firmware> dk AT mace /artimi/firmware> getfacl /bin/cygwin1.dll.vec # file: /bin/cygwin1.dll.vec # owner: dk # group: Domain Users user::rwx group::--- group:root:rwx group:SYSTEM:rwx group:Users:r-x mask:rwx other:--- dk AT mace /artimi/firmware> getfacl /bin/cygwin1-clip-debug.dll # file: /bin/cygwin1-clip-debug.dll # owner: dk # group: Domain Users user::rwx group::r-x mask:rwx other:r-x dk AT mace /artimi/firmware> -------------------------------------- Wow. I assume that TAB-completion is not performed in the context of the system user, so it must just be the 'Users:r-x' group that's doing it. Um, no, it isn't. I've now setfacl'd the two files identically, and it still doesn't work. -------------------------------------- dk AT mace /artimi/firmware> getfacl /bin/cygwin1.dll.vec # file: /bin/cygwin1.dll.vec # owner: dk # group: Domain Users user::rwx group::--- group:root:rwx group:SYSTEM:rwx group:Users:r-x mask:rwx other:--- dk AT mace /artimi/firmware> getfacl /bin/cygwin1-clip-debug.dll # file: /bin/cygwin1-clip-debug.dll # owner: dk # group: Domain Users user::rwx group::--- group:root:rwx group:SYSTEM:rwx group:Users:r-x mask:rwx other:r-x dk AT mace /artimi/firmware> ls /bin/cygwi[TAB]n1.dll.[TAB-TAB] cygwin1.dll.current cygwin1.dll.vec cygwin1.dll.gcc cygwin1.dll.working dk AT mace /artimi/firmware> ls /bin/cygwin1.dll. -------------------------------------- Hmmmm. Now what? I know, let's check the cacls. [What idio^Wmicrosoft programmer decided to align all the output against a margin the length of the filename? Yeh, all that wrapped illegible output really looks soooo much neater and tidier. Morons.] -------------------------------------- C:\cygwin\bin>cacls cygwin1.dll.vec C:\cygwin\bin\cygwin1.dll.vec BUILTIN\Administrators:F NT AUTHORITY\SYSTEM:F ARTIMI_CAM\dk:F BUILTIN\Users:R C:\cygwin\bin>cacls cygwin1-clip-debug.dll C:\cygwin\bin\cygwin1-clip-debug.dll ARTIMI_CAM\dk:F ARTIMI_CAM\Domain Users:(special access:) READ_CONTROL FILE_READ_EA FILE_READ_ATTRIBUTES BUILTIN\Administrators:(special access:) READ_CONTROL SYNCHRONIZE FILE_GENERIC_READ FILE_GENERIC_WRITE FILE_GENERIC_EXECUTE FILE_READ_DATA FILE_WRITE_DATA FILE_APPEND_DATA FILE_READ_EA FILE_WRITE_EA FILE_EXECUTE FILE_DELETE_CHILD FILE_READ_ATTRIBUTES FILE_WRITE_ATTRIBUTES NT AUTHORITY\SYSTEM:(special access:) READ_CONTROL SYNCHRONIZE FILE_GENERIC_READ FILE_GENERIC_WRITE FILE_GENERIC_EXECUTE FILE_READ_DATA FILE_WRITE_DATA FILE_APPEND_DATA FILE_READ_EA FILE_WRITE_EA FILE_EXECUTE FILE_DELETE_CHILD FILE_READ_ATTRIBUTES FILE_WRITE_ATTRIBUTES BUILTIN\Users:R Everyone:R -------------------------------------- Well, the ordering is a bit different, and the BUILTIN\Administrators and NT AUTH\SYSTEM ACLs have a few of the more exotic perms disabled (quota and things), but there's really nothing I can see there that ought to make a difference - unless someone else knows something I don't? cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/