[GRASS-dev] [GRASS GIS] #1683: error message v.add.col on MacOSX
GRASS GIS
trac at osgeo.org
Tue Jul 3 22:26:53 PDT 2012
#1683: error message v.add.col on MacOSX
-------------------------+--------------------------------------------------
Reporter: jradinger | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: Database | Version: svn-develbranch6
Keywords: v.add.col | Platform: MacOSX
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by JRadinger):
Here the shell output after running v.db.addcol in shell with changed
first line:
{{{
GRASS 6.5.svn (spearfish60):~ > v.db.addcol map=streams at test
columns="testcol DOUBLE"
+ '[' -z /Applications/GRASS-6.5.app/Contents/MacOS ']'
+ '[' map=streams at test '!=' @ARGS_PARSED@ ']'
++ basename /Applications/GRASS-6.5.app/Contents/MacOS/scripts/v.db.addcol
+ CMDLINE=v.db.addcol
+ for arg in '"$@"'
+ CMDLINE='v.db.addcol "map=streams at test"'
+ for arg in '"$@"'
+ CMDLINE='v.db.addcol "map=streams at test" "columns=testcol DOUBLE"'
+ export CMDLINE
+ exec g.parser
/Applications/GRASS-6.5.app/Contents/MacOS/scripts/v.db.addcol
map=streams at test 'columns=testcol DOUBLE'
+ '[' -z /Applications/GRASS-6.5.app/Contents/MacOS ']'
+ '[' @ARGS_PARSED@ '!=' @ARGS_PARSED@ ']'
++ basename /Applications/GRASS-6.5.app/Contents/MacOS/scripts/v.db.addcol
+ PROG=v.db.addcol
++ which awk
+ '[' '!' -x /usr/bin/awk ']'
+ unset LC_ALL
+ LC_NUMERIC=C
+ export LC_NUMERIC
++ g.gisenv
+ eval 'GISDBASE='\''/Users/Johannes' 'Radinger/Documents/GRASS-GIS'\'';'
'LOCATION_NAME='\''spearfish60'\'';' 'MAPSET='\''test'\'';'
'ADDON_PATH='\''/Users/Johannes'
Radinger/Library/GRASS/6.5/Modules/bin:/Library/GRASS/6.5/Modules/bin:/Users/Johannes
'Radinger/Library/GRASS/6.5/Modules/bin:/Library/GRASS/6.5/Modules/bin:/Users/Johannes'\'';'
'Radinger/Library/GRASS/6.5/Modules/bin='\''/Library/GRASS/6.5/Modules/bin:/Users/Johannes:/Users/Johannes'
'Radinger/Documents/GRASS-GIS/Scripts'\'';' 'Radinger/Documents/GRASS-
GIS/Scripts='\''/Users/Johannes' 'Radinger/Desktop'\'';'
'MONITOR='\''x7'\'';' 'GRASS_GUI='\''wxpython'\'';'
++ GISDBASE='/Users/Johannes Radinger/Documents/GRASS-GIS'
++ LOCATION_NAME=spearfish60
++ MAPSET=test
++ ADDON_PATH='/Users/Johannes
Radinger/Library/GRASS/6.5/Modules/bin:/Library/GRASS/6.5/Modules/bin:/Users/Johannes
Radinger/Library/GRASS/6.5/Modules/bin:/Library/GRASS/6.5/Modules/bin:/Users/Johannes'
++
'Radinger/Library/GRASS/6.5/Modules/bin=/Library/GRASS/6.5/Modules/bin:/Users/Johannes:/Users/Johannes
Radinger/Documents/GRASS-GIS/Scripts'
/Applications/GRASS-6.5.app/Contents/MacOS/scripts/v.db.addcol: line 80:
Radinger/Library/GRASS/6.5/Modules/bin=/Library/GRASS/6.5/Modules/bin:/Users/Johannes:/Users/Johannes
Radinger/Documents/GRASS-GIS/Scripts: No such file or directory
++ 'Radinger/Documents/GRASS-GIS/Scripts=/Users/Johannes Radinger/Desktop'
/Applications/GRASS-6.5.app/Contents/MacOS/scripts/v.db.addcol: line 80:
Radinger/Documents/GRASS-GIS/Scripts=/Users/Johannes Radinger/Desktop: No
such file or directory
++ MONITOR=x7
++ GRASS_GUI=wxpython
+ : /Applications/GRASS-6.5.app/Contents/MacOS /Users/Johannes
Radinger/Documents/GRASS-GIS spearfish60 test
++ g.findfile element=vector file=streams at test mapset=test
+ eval 'name='\''streams at test'\''' 'mapset='\''test'\'''
'fullname='\''streams at test'\''' 'file='\''/Users/Johannes'
'Radinger/Documents/GRASS-GIS/spearfish60/test/vector/streams'\'''
++ name=streams at test
++ mapset=test
++ fullname=streams at test
++ file='/Users/Johannes Radinger/Documents/GRASS-
GIS/spearfish60/test/vector/streams'
+ '[' '!' '/Users/Johannes Radinger/Documents/GRASS-
GIS/spearfish60/test/vector/streams' ']'
++ v.db.connect streams at test -gl layer=1 'fs=|'
++ cut -f2 '-d|'
+ table=streams
+ '[' -z streams ']'
++ v.db.connect streams at test -gl 'fs=|' layer=1
++ cut -f4 '-d|'
+ database='/Users/Johannes Radinger/Documents/GRASS-
GIS/spearfish60/test/dbf/'
++ v.db.connect streams at test -gl 'fs=|' layer=1
++ cut -f5 '-d|'
+ driver=dbf
++ echo 'testcol DOUBLE'
++ awk -F, '{print NF}'
+ colnum=1
+ n=1
+ '[' 1 -le 1 ']'
++ echo 'testcol DOUBLE'
++ cut -d, -f1
+ col='testcol DOUBLE'
+ '[' -z 'testcol DOUBLE' ']'
+ db.execute 'database=/Users/Johannes Radinger/Documents/GRASS-
GIS/spearfish60/test/dbf/' driver=dbf
+ echo 'ALTER TABLE streams ADD COLUMN testcol DOUBLE'
+ '[' 0 -eq 1 ']'
++ expr 1 + 1
+ n=2
+ '[' 2 -le 1 ']'
+ v.support streams at test 'cmdhist=v.db.addcol "map=streams at test"
"columns=testcol DOUBLE"'
+ exit 0
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1683#comment:3>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list