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 Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 9 Feb 2002 13:29:31 -0400 (GMT-0400) From: Rodrigo Medina Message-Id: <200202091729.NAA01024@taquion.ivic.ve> To: cygwin AT cygwin DOT com Subject: Program behaves differently when called from script. Hello, I want to report a very strange behavior of bash (?, I really don't know), that appeared after installing the last version of cygwin (the cygwin1.dll is of Jan 21 2002, the previous one was of Dec. 2001). Everything was OK with the new version, (I actually compiled succesfully xdvik), exept for the following extrange behavior: The program xmodmap of XFree86 works differently when its is called from a shell script than when it is called from the terminal. The xmodmap program is the sameone. More precisely if I run xmodmap directly everything is OK: rmedina AT LIMON ~ $ xmodmap .Xmodmap rmedina AT LIMON ~ $ cat script #!/bin/sh xmodmap .Xmodmap exit I get: rmedina AT LIMON ~ $ ./script Standard: not found For: not found R.: not found FUNCTIONS:: not found .//xmodmap: 7: Syntax error: Unterminated quoted string rmedina AT LIMON ~ $ The beginning of the .Xmodmap file is the following: rmedina AT LIMON ~ $ head .Xmodmap ! Standard IBM-Microsoft 101/102 spanish keyboard map. ! For XFree86 ! R. Medina. 2002/01/07 ! ! FUNCTIONS: Spanish 'xmodmap' keyboard file for dynamically altering ! the X server's keysym array that it sends to X clients. ! ! How it was made: With xmodmap -pke the original map was extracted, ! which was an English International keyboard. The keys to modify rmedina AT LIMON ~ $ It seems that xmodmap, when it is called from the script, does not process correctly the comment character "!". I hope that someone can tell me if I am missing something. bye. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/