Opened 7 years ago

Last modified 4 years ago

#1952 new enhancement

wingrass: please add tac and seq to extrabin

Reported by: hamish Owned by: grass-dev@…
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)

comment:1 Changed 7 years ago by hamish

more.exe is missing from the wingrass bash prompt too.

thanks

comment:2 Changed 6 years ago by neteler

See also ticket #1275 (zip.exe)

comment:4 Changed 6 years ago by hamish

xml2.exe, too (for r.in.wms[.sh]).

comment:5 Changed 6 years ago by neteler

Can a winGRASS user please check if these commands are now in the installer?

  • bc
  • more
  • seq
  • tac
  • xml2

? Thanks.

comment:6 in reply to:  5 Changed 6 years ago by hellik

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 in reply to:  1 Changed 6 years ago by hellik

Replying to hamish:

more.exe is missing from the wingrass bash prompt too.

thanks

windows operating systems ship their own more-version.

comment:8 in reply to:  5 ; Changed 6 years ago by hellik

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/

comment:9 in reply to:  8 ; Changed 6 years ago by 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).

comment:10 in reply to:  9 Changed 6 years ago by hellik

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...

comment:11 in reply to:  description ; Changed 6 years ago by 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.

comment:12 in reply to:  11 Changed 6 years ago by wenzeslaus

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 Changed 4 years ago by neteler

Milestone: 6.4.36.4.6
Note: See TracTickets for help on using tickets.