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: 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 by hamish, 12 years ago

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

thanks

comment:2 by neteler, 12 years ago

See also ticket #1275 (zip.exe)

comment:4 by hamish, 11 years ago

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

comment:5 by neteler, 11 years ago

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

  • bc
  • more
  • seq
  • tac
  • xml2

? Thanks.

in reply to:  5 comment:6 by hellik, 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

in reply to:  1 comment:7 by hellik, 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.

in reply to:  5 ; comment:8 by hellik, 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/

in reply to:  8 ; comment:9 by martinl, 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).

in reply to:  9 comment:10 by hellik, 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...

in reply to:  description ; comment:11 by glynn, 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.

in reply to:  11 comment:12 by wenzeslaus, 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 neteler, 9 years ago

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