[GRASS-dev] [GRASS GIS] #1369: setPrompt: command not found in GRASS7-svn

GRASS GIS trac at osgeo.org
Mon Jul 28 19:54:30 PDT 2014


#1369: setPrompt: command not found in GRASS7-svn
----------------------+-----------------------------------------------------
  Reporter:  moovida  |       Owner:  grass-dev@…              
      Type:  defect   |      Status:  closed                   
  Priority:  normal   |   Milestone:  7.0.0                    
 Component:  Startup  |     Version:  svn-trunk                
Resolution:  wontfix  |    Keywords:  shell, prompt            
  Platform:  Linux    |         Cpu:  Unspecified              
----------------------+-----------------------------------------------------
Changes (by hamish):

  * keywords:  => shell, prompt


Comment:

 for me this was working fine for me last time I had a MASK map set,

 {{{
 GRASS7> echo $PROMPT_COMMAND
 '/home/hamish/src/grass/svn/trunk/dist.x86_64-unknown-linux-
 gnu/etc/prompt.py'
 }}}

 As such, I would suggest that this bug is already fixed, not wontfix.

 the place the prompt.py is set is in lib/init/grass.py line ~1085.
 Prompt.py is also in lib/init/ in the source tree.


 fwiw I doubt that has to be or should be a python script, and I think it
 only slows things down to have it as such. By definition the bash prompt
 is going to have a Bourne shell already present and already cached in
 memory, and launching a python process is much more expensive than a built
 in function().


 ISTR some trouble with this last time I tried G7 from the cmd.exe line on
 Windows, it had trouble finding the right python interpreter? Would need
 to recheck if that is still the case. Rather that worry about fixing that
 I'd again suggest to just put it back to a shell script and avoid the
 headache.


 Hamish

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



More information about the grass-dev mailing list