[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shell script not found

From: Mike Thomas
Subject: Shell script not found
Date: Thu, 23 Nov 2000 22:14:26 +1000

From: address@hidden
To: address@hidden
Subject: Shell script not found

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: cygwin
Compiler: gcc
CFLAGS:  -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='cygwin' 
  -I.  -I../src -I../src/include -I../src/lib -I/usr/include -g -O2
uname output: CYGWIN_98-4.10 SNOWPEA 1.1.5(0.30/3/2) 2000-11-11 01:49 i586
Machine Type: i686-pc-cygwin

Bash Version: 2.04
Patch Level: 0
Release Status: release

 This problem came up while making the GRASS GIS under cygwin on Win98 at
        bottom of a complicated series of make driven shell scripts.

 Basically a shell script can't see the script it wants to execute even
though it exists.

 However, it can be brought down to the following script:

 ls -al ./gmake5.0

 Make a file called mk containing the above two lines which in turn
 check for the existence of the file and then execute it.

        Make an arbitrary file called gmake5.0.

 Execute mk.

 Example output:

 $ ./mk
 -rw-r--r--   1 mike     unknown        79 Nov 22 19:33 ./gmake5.0
 ./gmake5.0: not found

 ls can see the file, but the shell can't!

 chmod doesn't work either:

 $ chmod +rwx ./gmake5.0

 $ ls -al ./gmake5.0
 -rw-r--r--   1 mike     unknown        79 Nov 22 19:33 ./gmake5.0

reply via email to

[Prev in Thread] Current Thread [Next in Thread]