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 Message-ID: From: "Willis, Matthew" To: "'cygwin AT cygwin DOT com'" Subject: Observation - ntemacs + rcs + cygwin note (lowercase+uppercase us erid workaround) Date: Tue, 3 Jun 2003 13:38:53 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" First off, I know this is slightly offtopic since it mentions a program (ntemacs) which is not part of cygwin, but I figured I would just chime in with a finding which may be potentially useful to cygwin users who use ntemacs. I use ntemacs in preference to the cygwin /usr/bin/emacs, because of the native gui. I have a cygwin wrapper that does "cygpath -w" to my cygwin path names, and then passes the arg list to ntemacs. I found that on some machines, ntemacs+rcs would behave very strangely. I would be asked to steal the lock from "willisma" -- my userid. It worked fine on other machines. This did not occur in cygwin /usr/bin/emacs by the way. I found that vc-user-login-name was returning "WILLISMA" but the rcs file was locked by "willisma". Case sensitive comparison. Anyway, the simplest workaround I found was to put a single line in my ntemacs script converting USERNAME to the lowercase. #!/bin/sh # ntemacs.sh - a cygwin wrapper for ntemacs export USERNAME=`echo $USERNAME | tr 'A-Z' 'a-z'` WNAMES= for k in $* ; do WNAMES="${WNAMES} `cygpath -w $k`" done /cygdrive/c/emacs-21.3/bin/runemacs.exe $WNAMES -- 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/