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 To: cygwin AT cygwin DOT com From: Eric Blake Subject: Re: Unwanted .exe appended to symlinks Date: Sat, 9 Jul 2005 16:45:08 +0000 (UTC) Lines: 32 Message-ID: References: <1120880636 DOT 6400 DOT 7 DOT camel AT localhost DOT localdomain> <42CFD190 DOT 2060109 AT byu DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Igor Pechtchanski cs.nyu.edu> writes: > I appreciate the effort you spend to get this right, and hate to ask for > extras (especially if those are non-standard), but would it be possible to > add a Cygwin-specific option[*] to ln that disables this? The reason is > that I frequently create symlinks to files/directories on network shares, > and those shares aren't always available. I can probably do that; all it would do is skip the cygwin-specific syscalls I make up front to see what spelling to use, and just default to the supplied spelling. > When they aren't, any access to > them locks up the shell until the SMB request times out (which can take a > while and isn't interruptible). Having ln always check the target of the > symlink will make "ln -s" nigh unusable. Doing this would only speed up the symlink creation. Anything that does a stat on the sometimes-dangling link will still cause a SMB request, with the corresponding potential pause (even something like 'ls -l' stats a link). > Igor > [*] I'd suggest --disable-exe-magic (no need to expend a short option) Sounds like a reasonable name, although it may be a bit misleading ('ln -sf //net/drive existing' where it is really spelled existing.exe will probably do the wrong thing, since cygwin's .exe magic will cause ln's stat to see if existing is there to succeed, but the unlink("existing") to fail). -- Eric Blake -- 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/