X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Message-ID: <49DD71E2.50103@cygwin.com> Date: Wed, 08 Apr 2009 23:56:18 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20090101 Remi/2.0.0.19-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: duplicate *.exe commands References: <20090409022312 DOT 19895 DOT qmail AT smasher DOT org> <49DD6D23 DOT 2080607 AT cygwin DOT com> <20090409035515 DOT 24374 DOT qmail AT smasher DOT org> In-Reply-To: <20090409035515.24374.qmail@smasher.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Atom Smasher wrote: > 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? There are no Cygwin commands that don't have the ".exe" suffix so I don't see why you can't delete them from your hash if you want. Never done it myself so I don't know if it will really accomplish your intended goal or not though. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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/