This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Program behaves differently when called from script.


> I want to report a very strange behavior of bash (?, I really don't know), that

>         rmedina@LIMON ~
>         $ xmodmap .Xmodmap

This is /bin/bash executing.

>         $ cat script
>         #!/bin/sh
>         xmodmap .Xmodmap
>         exit
>         rmedina@LIMON ~
>         $ ./script
>         Standard: not found
>         For: not found
>         R.: not found
>         FUNCTIONS:: not found
>         .//xmodmap: 7: Syntax error: Unterminated quoted string

This is /bin/sh executing.

I suppose they have a different working, try changing the "magic" line in the
script to read "#!/bin/bash"

C ya

--
Lapo 'Raist' Luchini
lapo@lapo.it (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]