Opened 12 years ago
Last modified 9 years ago
#1952 new enhancement
wingrass: please add tac and seq to extrabin
Reported by: | hamish | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 6.4.6 |
Component: | Packaging | Version: | svn-develbranch6 |
Keywords: | wingrass | Cc: | |
CPU: | x86-32 | Platform: | MSWindows XP |
Description
Hi,
tac.exe and seq.exe are no longer shipped with wingrass. (I'm not sure if tac ever was)
I'm pretty sure seq
used to be there (in msys/bin/?) but it seems to have gone away.
if it's an easy thing to do, could we install these unix powertools to msys/bin/ or extrabin/?
thanks, Hamish
Change History (13)
follow-up: 7 comment:1 by , 12 years ago
comment:3 by , 11 years ago
follow-ups: 6 8 comment:5 by , 11 years ago
Can a winGRASS user please check if these commands are now in the installer?
- bc
- more
- seq
- tac
- xml2
? Thanks.
comment:6 by , 11 years ago
Replying to neteler:
Can a winGRASS user please check if these commands are now in the installer?
- bc
- more
- seq
- tac
- xml2
? Thanks.
- bc => available in C:\OSGeo4W\bin
- more => not available in C:\OSGeo4W\bin
- seq => not available in C:\OSGeo4W\bin
- tac => not available in C:\OSGeo4W\bin
- xml2 => not available in C:\OSGeo4W\bin
comment:7 by , 11 years ago
Replying to hamish:
more.exe is missing from the wingrass bash prompt too.
thanks
windows operating systems ship their own more-version.
follow-up: 9 comment:8 by , 11 years ago
Replying to neteler:
Can a winGRASS user please check if these commands are now in the installer?
- bc
- more
- seq
- tac
- xml2
? Thanks.
seq and tac-download available: http://sourceforge.net/projects/unxutils/
follow-up: 10 comment:9 by , 11 years ago
Replying to hellik:
seq and tac-download available: http://sourceforge.net/projects/unxutils/
I will put it do my TODO (update msys-grass package).
comment:10 by , 11 years ago
Replying to martinl:
Replying to hellik:
seq and tac-download available: http://sourceforge.net/projects/unxutils/
I will put it do my TODO (update msys-grass package).
thanks. any idea about xml2?
just a quick test with
System Info GRASS Version: 6.4.4svn GRASS SVN Revision: 58663 GIS Library Revision: 50937 (2012-02-25) GDAL/OGR: 1.10.1 PROJ4: Rel. 4.8.0, 6 March 2012 Python: 2.7.4 wxPython: 2.8.12.1 Platform: Windows-7-6.1.7601-SP1 (OSGeo4W)
Import raster data -> WMS import -> Connect
with the second example from the manual with Land Cover (http://grass.osgeo.org/grass64/manuals/r.in.wms.html)
error message
the xml2 parser is required, please install it first...
follow-up: 12 comment:11 by , 11 years ago
Replying to hamish:
tac.exe and seq.exe are no longer shipped with wingrass. (I'm not sure if tac ever was)
tac and seq aren't specified by POSIX. Any scripts which use them should be modified to work without them.
Not only is seq trivial to implement as a shell function, I can't find anything which actually uses it.
The only user of tac appears to be v.in.mapgen, which provides its own implementation (using awk) as a fallback.
comment:12 by , 11 years ago
Replying to glynn:
Replying to hamish:
tac.exe and seq.exe are no longer shipped with wingrass. (I'm not sure if tac ever was)
tac and seq aren't specified by POSIX. Any scripts which use them should be modified to work without them.
Not only is seq trivial to implement as a shell function, I can't find anything which actually uses it.
The only user of tac appears to be v.in.mapgen, which provides its own implementation (using awk) as a fallback.
I would expect that users wants to use them in their own scripts, or their might be used in addons. The fact is that their are used in manual, however each just once/twice:
dist.../docs/html $ egrep -Irn "tac " . ./m.cogo.html:169: m.cogo -l in=cogo.dat | tac | awk ' ./m.cogo.html:172: END { printf("L %d\n", R) }' | tac | \
dist.../docs/html $ egrep -Irn "seq " . ./d.out.gpsdrive.html:139:for i in `seq 1 $panels_ew`; ./d.out.gpsdrive.html:142: for j in `seq 1 $iter`;
I would just ignore these two.
comment:13 by , 9 years ago
Milestone: | 6.4.3 → 6.4.6 |
---|
more.exe is missing from the wingrass bash prompt too.
thanks