[GRASS-dev] [GRASS GIS] #2024: r.li.setup generates incomplete r.li conf file

GRASS GIS trac at osgeo.org
Sun Dec 8 14:39:57 PST 2013

#2024: r.li.setup generates incomplete r.li conf file
 Reporter:  matmar      |       Owner:  grass-dev@…              
     Type:  defect      |      Status:  new                      
 Priority:  normal      |   Milestone:  6.4.4                    
Component:  Raster      |     Version:  svn-releasebranch64      
 Keywords:  r.li.setup  |    Platform:  Linux                    
      Cpu:  x86-64      |  

Comment(by rashadkm):

 Hi Matteo,

 This seems to be a '''problem with the dash vs bash'''. Some linux distro
 (Debian, Ubuntu etc..) uses dash as the default shell for some reasons[1].
 This means /bin/sh is symlinked to /bin/dash instead of bash shell. The
 two are different in some aspects like loops, comparison ops etc. Most of
 the bash shell runs ok with dash but some others won't. changing the
 default shell by changing #!/bin/sh to !/bin/bash fixes the problem.

 [1] https://wiki.ubuntu.com/DashAsBinSh

Ticket URL: <https://trac.osgeo.org/grass/ticket/2024#comment:5>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list