delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/09/12:31:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <rmedina AT ivic DOT ve>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019