[GRASS5] problems with Init.sh

On my Linux system (Debian), i have both wish8.0 and wish8.2
This confuse the grass5 script, because it founds two files
in the same directory. I propose to modify the line 52 of Init.sh
from
       PATHLIST="$i/`ls -1 |grep $SEARCHCOMMAND` $PATHLIST"
to
       PATHLIST="$i/`ls -1 |grep $SEARCHCOMMAND|tail -1` $PATHLIST"

Question for the Cygwin version of Grass : does Window's shell accept
grep, tail, ls and other unix commands ?

--
Michel WURTZ - DIG - Maison de la télédétection
               500, rue J.F. Breton
               34093 MONTPELLIER Cedex 5

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi Michel,

On Tue, Dec 05, 2000 at 02:10:24PM +0000, Michel Wurtz wrote:

On my Linux system (Debian), i have both wish8.0 and wish8.2
This confuse the grass5 script, because it founds two files
in the same directory. I propose to modify the line 52 of Init.sh
from
       PATHLIST="$i/`ls -1 |grep $SEARCHCOMMAND` $PATHLIST"
to
       PATHLIST="$i/`ls -1 |grep $SEARCHCOMMAND|tail -1` $PATHLIST"

It seems you are using an old version. Could you please check that
with current CVS version? The search stuff was modified recently.

Thanks!

Question for the Cygwin version of Grass : does Window's shell accept
grep, tail, ls and other unix commands ?

No idea - hi John, Andreas, Mike!

Markus

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Markus Neteler wrote:

> Question for the Cygwin version of Grass : does Window's shell accept
> grep, tail, ls and other unix commands ?
No idea - hi John, Andreas, Mike!

If it's the bash.exe shell included with cygwin, then it certainly
does. =) The windows shell, CMD.EXE also includes a minimal amount
of support for pipes and redirection. Also, there is now a
"services for unix" package for windows, by Microsoft, that includes
a lot of the "standard" unix utilities.I believe they licensed the
MKS version of the unix utilities, and relabeled them.

Markus

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

--
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Eric B. Mitchell mailto:emitchell@altaira.com |
| tel: (301) 809 - 3534 Altair Aerospace Corporation |
| tel: (800) 7 - ALTAIR 4201 Northview Dr. Suite 410 |
| fax: (301) 805 - 8122 Bowie, MD 20716 |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
              ,___
          /"\ / o=\ /"""---===/
         / \_/ \__/ ---===/
         | //\ || /""TT""/ //\ || ||""\
         | // \ || || // \ || ||__/
         | //--==\ |L--/ || //--==\ || || "=,
          \ ---===/
           \____---===/

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'