[GRASS-dev] [GRASS GIS] #2152: cd command does not work in GUI Command console

GRASS GIS trac at osgeo.org
Thu Mar 27 11:26:36 PDT 2014


#2152: cd command does not work in GUI Command console
---------------------------------+------------------------------------------
 Reporter:  wenzeslaus           |       Owner:  grass-dev@…              
     Type:  enhancement          |      Status:  new                      
 Priority:  normal               |   Milestone:  7.0.0                    
Component:  wxGUI                |     Version:  6.4.3                    
 Keywords:  cd, command console  |    Platform:  All                      
      Cpu:  Unspecified          |  
---------------------------------+------------------------------------------

Comment(by glynn):

 Replying to [comment:6 wenzeslaus]:

 > There is really no `cd` executable.

 If the shell runs an external program, it has to do so in a child process.
 A "cd" program would change the current directory of the child process
 running the "cd" program, which is of no use to anyone.

 Some built-in shell commands are built-in for convenience or efficiency.
 "cd" is built in because it has to be; only the shell itself can change
 its current directory. Likewise for "export" and "ulimit".

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2152#comment:8>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list