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

GRASS GIS trac at osgeo.org
Wed Mar 26 19:35:09 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 wenzeslaus):

 `cd` command implemented in r59388 for trunk. `cd` without parameters
 opens the dialog opened from GUI main menu change working directory item.
 All supported possibilities are:

 {{{
 cd
 cd -h
 cd --h
 cd --help
 cd existing_dir
 cd not_existing_dir
 }}}

 Test:
 {{{
 cd "--h"
 Changes current working directory for this GUI.
 Usage: cd [directory]

 cd "asdfsae"
 [Errno 2] No such file or directory: 'asdfsae'

 cd "raster"
 Working directory changed to:
 "/full/path/from/os.getcwd/function/to/raster"

 }}}

 Tested on Linux (Ubuntu) with spaces and UTF-8 in path. Needs test on MS
 Windows and Mac OS X.

 And by the way:
 {{{
 $ which cp
 /bin/cp
 $ which cd
 (no output)
 $ type cp
 cp is /bin/cp
 $ type cd
 cd is a shell builtin
 }}}

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



More information about the grass-dev mailing list