Subject: Re: [GRASS5] compiling beta10 on IRIX and CYGWIN/WIN32
Justin Hickey
jhickey at hpcc.nectec.or.th
Thu Dec 14 22:53:01 EST 2000
Hi Andreas and Malcolm
Andreas Lange wrote:
>
> Malcolm Blue wrote:
> > > Does this mean that CYGWIN does not have a sh program but a bash
> > > one instead? Should we put "if CYGWIN copy /bin/bash.exe to
> > > /bin/sh.exe" code in the Makefile or somewhere? Just an idea.
> >
> > It might be better to test which shell is being used and tell the
> > user that Init.sh (and grass5) won't run with the ash shell - which
> > I think is what is used for the default sh.exe program in the cygwin
> > setup. This information should also be added to the INSTALL file and
> > to the Cygwin instructions. A lot of people prefer the borne shell
> > anyway. Since other shells may be available (csh, ksh, etc.) now or
> > in the future it is probably best to avoid making changes to a users
> > setup.
> >
Hmmm. It appears that you may have misunderstood me. The fault is mine,
I was pretty vague with that post so I'll try to be more clear. At first
I thought the error message Andreas posted meant that CYGWIN could not
find the file Init.sh. After your reply, it reminded me that the error
message could be complaining about not finding the correct shell script
interpreter. Since you copied bash.exe.to sh.exe, I thought that CYGWIN
did not provide the sh interpreter which is required by our shell
scripts.
The way it is supposed to work is that programmers are supposed to write
their shell scripts as sh scripts since sh is supposed to be installed
in every version of UNIX. The sh interpreter is specified in the script
and thus, the script is portable. Therefore, it shouldn't matter which
shell people use, since the script is always supposed to use the sh
interpreter regardless of the shell it is called from.
So, the user should not have to change his/her setup, and the problem is
either in the script or with the CYGWIN installation. But I think I
found the problem, please see below. You may already know all this but I
thought a thourough explanation would be better.
> thanks for the hints. I'll test for this later. But what is changed
> internally to Init.sh that it does no longer work on CYGWIN. The CVS
> Version before beta9 worked flawlessly with standard CYGWIN setup.
Andreas, I just checked the Init.sh file in CVS and it doesn't contain
the standard
#! /bin/sh
line as the first line. Could you please put this in your copy of
Init.sh and see if this fixes the problem? Thanks.
--
Sincerely,
Jazzman (a.k.a. Justin Hickey) e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do. ---Anonymous
Jazz and Trek Rule!!!
==================================================================
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list