X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <20090409035515.24374.qmail@smasher.org> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Date: Thu, 9 Apr 2009 15:55:13 +1200 (NZST) From: Atom Smasher In-Reply-To: <49DD6D23.2080607@cygwin.com> MIME-Version: 1.0 OpenPGP: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt References: <20090409022312 DOT 19895 DOT qmail AT smasher DOT org> <49DD6D23 DOT 2080607 AT cygwin DOT com> Subject: Re: duplicate *.exe commands To: cygwin AT cygwin DOT com X-POM: The Moon is Full X-Hashcash: 1:20:0904090355:cygwin AT cygwin DOT com::AdrLqQOf17aQS4RK:0000000000000000 0000000000000000000000000UxB X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Wed, 8 Apr 2009, Larry Hall (Cygwin) wrote: > There are no duplicate *.exe commands. All Cygwin executables contain > the exe extension as Windows prefers. Cygwin tries to make things > easier by mapping "cat" to "cat.exe", for example, which is why it may > look to you like there are both in the Cygwin environment. But look at > 'c:\cygwin\bin' in the Explorer and you'll see all the commands have the > .exe extension. If you get rid of one, you get rid of the other since > they are the same. Now, to anticipate your next question, > '/usr/bin/cat.exe' and '/bin/cat.exe' are not duplicates either. See > the results of typing 'mount'. ======================= i'm not talking about deleting any files, just deleting duplicate *.exe commands from my command hash, so they don't auto-complete when i press . the *.exe commands would be there (and be available if called), i just wouldn't have to look at them when i tab-complete. ls -ilh `which cat cat.exe` that tells me that the two commands are hard-linked; they share the same inode. it seems the same way for all of the commands that appear in my PATH with and without a ".exe" suffix. so the question remains: is it "safe" to delete all *.exe files from my command hash? or should i first check for the same command, in the same place, without the ".exe" suffix? -- ...atom ________________________ http://atom.smasher.org/ 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "The difference between genius and stupidity is that genius has its limits." -- Albert Einstein -- 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/