public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Directory existence prevents .exe execution
@ 2008-04-16  5:06 Luke Kendall
  2008-04-17 15:25 ` Igor Peshansky
  0 siblings, 1 reply; 19+ messages in thread
From: Luke Kendall @ 2008-04-16  5:06 UTC (permalink / raw)
  To: cygwin

We have the Ici scripting language installed on Windows.  Ici expects a 
directory called "ici" to exist alongside, where various libraries are 
installedd to provide extra functionality.

Unfortunately, under Cygwin, if w try to run the command "ici" we get 
the error "ici: command not found", because Cygwin chooses to try to 
execute the directory instead of the .exe:

$ /opt/bin/ici /cygdrive/x/bin/script/cfnhdr
bash: /opt/bin/ici: is a directory
$ ls -ld /opt/bin/ici
drwxr-xr-x 1 luke Domain Users 0 Oct 17  2005 /opt/bin/ici
$ ls -ld /opt/bin/ici.*
-rwxr-xr-x 1 luke Domain Users 233503 Apr 18  2000 /opt/bin/ici.dll
-rwxr-xr-x 1 luke Domain Users  24576 Jan 29  2003 /opt/bin/ici.exe

I tried naming the ici directory Ici but it made no difference.
The directory /opt/bin is mounted like so:
$ mount
\\samba\syncopt\microsoft.x86.win\bin on /opt/bin type system 
(textmode,exec)

Using binmode doesn't help.  Is this a bug, that bash tries to execute a 
directory even when there's an executable (with an implicit .exe suffix, 
naturally) of the same name in existence ?  If not, can anyone suggest a 
workaround?  I can't just append a .exe to the #!/opt/bin/ici shell 
wrapper since then the scripts wouldn't run from Unix.

Is there a bash option that controls this, maybe (I couldn't see one)?

Regards,

luke

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

^ permalink raw reply	[flat|nested] 19+ messages in thread
[parent not found: <D80722838B6A6B4BA3CA9D90BA70BBB302E0DFAF@dhrseasvxb04.messaging.danaherad.com>]

end of thread, other threads:[~2008-04-21 20:29 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-16  5:06 Directory existence prevents .exe execution Luke Kendall
2008-04-17 15:25 ` Igor Peshansky
2008-04-18  4:08   ` Luke Kendall
     [not found] <D80722838B6A6B4BA3CA9D90BA70BBB302E0DFAF@dhrseasvxb04.messaging.danaherad.com>
2008-04-16  9:14 ` Luke Kendall
2008-04-16  9:18   ` Mark J. Reed
2008-04-18  3:52     ` Luke Kendall
2008-04-18  3:59       ` Larry Hall (Cygwin)
2008-04-18  5:02         ` Luke Kendall
2008-04-18  5:02           ` Larry Hall (Cygwin)
2008-04-18  6:53             ` Luke Kendall
2008-04-18  8:28               ` Larry Hall (Cygwin)
2008-04-18  9:24                 ` Luke Kendall
2008-04-18 15:08                   ` Larry Hall (Cygwin)
2008-04-18 19:05                   ` Reini Urban
2008-04-22  1:56                   ` Ross Smith
2008-04-16  9:39   ` Corinna Vinschen
2008-04-18  3:32     ` Luke Kendall
2008-04-18 12:16       ` Corinna Vinschen
2008-04-18 14:33         ` Mark J. Reed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).