[GRASS-user] grass prompt -- strange behaviour

Martin Landa landa.martin at gmail.com
Sat May 13 19:01:12 EDT 2006


Hi all,

there is something strange with GRASS prompt on my computer (Debian
GNU/Linux unstable, UTF8). An example script:

for map in $(ls *.xml); do echo "$map -> ${map%%.xml}"; done

GRASS not running

$ for ...

abscl-seidl.gkf.xml -> abscl-seidl.gkf
abscl-temelin.gkf.xml -> abscl-temelin.gkf
bug-1.3.25-zpk.gkf.xml -> bug-1.3.25-zpk.gkf
...
zoltan-test_2d_gon.gkf.xml -> zoltan-test_2d_gon.gkf
zoltan-test_3d_dms.gkf.xml -> zoltan-test_3d_dms.gkf
zoltan-test_3d_gon.gkf.xml -> zoltan-test_3d_gon.gkf

-> OK

GRASS running ...

GRASS > for ...

abscl-seidl.gkf.xml -> abscl-seidl.gkf.xml
abscl-temelin.gkf.xml -> abscl-temelin.gkf.xml
bug-1.3.25-zpk.gkf.xml -> bug-1.3.25-zpk.gkf.xml
...
zoltan-test_2d_gon.gkf.xml -> zoltan-test_2d_gon.gkf.xml
zoltan-test_3d_dms.gkf.xml -> zoltan-test_3d_dms.gkf.xml
zoltan-test_3d_gon.gkf.xml -> zoltan-test_3d_gon.gkf.xml
 ->

So, ${map%%.xml} does not work any more, overmore there is a strange
last line containing empty variable $map.

Am I doing anything wrong? I am a little bit confused;-)

Best,

Martin




More information about the grass-user mailing list