[GRASS-dev] [GRASS GIS] #1952: wingrass: please add tac and seq to extrabin

#1952: wingrass: please add tac and seq to extrabin
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-develbranch6
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------+--------------------------------------------------
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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1952&gt;
GRASS GIS <http://grass.osgeo.org>

#1952: wingrass: please add tac and seq to extrabin
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-develbranch6
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------+--------------------------------------------------

Comment(by hamish):

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

thanks

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1952#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1952: wingrass: please add tac and seq to extrabin
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-develbranch6
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------+--------------------------------------------------

Comment(by neteler):

See also ticket #1275 (zip.exe)

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1952#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1952: wingrass: please add tac and seq to extrabin
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-develbranch6
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------+--------------------------------------------------

Comment(by hamish):

* http://trac.osgeo.org/osgeo4w/wiki/pkg-msys
  * http://lists.osgeo.org/pipermail/grass-dev/2013-June/064214.html

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1952#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1952: wingrass: please add tac and seq to extrabin
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-develbranch6
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------+--------------------------------------------------

Comment(by hamish):

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

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

#1952: wingrass: please add tac and seq to extrabin
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-develbranch6
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------+--------------------------------------------------

Comment(by neteler):

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

  * bc
  * more
  * seq
  * tac
  * xml2

? Thanks.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1952#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#1952: wingrass: please add tac and seq to extrabin
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-develbranch6
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------+--------------------------------------------------

Comment(by hellik):

Replying to [comment:5 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

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1952#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#1952: wingrass: please add tac and seq to extrabin
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-develbranch6
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------+--------------------------------------------------

Comment(by hellik):

Replying to [comment:1 hamish]:
> more.exe is missing from the wingrass bash prompt too.
>
>
> thanks

windows operating systems ship their own more-version.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1952#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>

#1952: wingrass: please add tac and seq to extrabin
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-develbranch6
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------+--------------------------------------------------

Comment(by hellik):

Replying to [comment:5 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/

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1952#comment:8&gt;
GRASS GIS <http://grass.osgeo.org>

#1952: wingrass: please add tac and seq to extrabin
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-develbranch6
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------+--------------------------------------------------

Comment(by martinl):

Replying to [comment:8 hellik]:
> seq and tac-download available:
http://sourceforge.net/projects/unxutils/

I will put it do my TODO (update msys-grass package).

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1952#comment:9&gt;
GRASS GIS <http://grass.osgeo.org>

#1952: wingrass: please add tac and seq to extrabin
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-develbranch6
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------+--------------------------------------------------

Comment(by hellik):

Replying to [comment:9 martinl]:
> Replying to [comment:8 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...
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1952#comment:10&gt;
GRASS GIS <http://grass.osgeo.org>

#1952: wingrass: please add tac and seq to extrabin
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-develbranch6
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------+--------------------------------------------------

Comment(by glynn):

Replying to [ticket:1952 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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1952#comment:11&gt;
GRASS GIS <http://grass.osgeo.org>

#1952: wingrass: please add tac and seq to extrabin
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-develbranch6
Keywords: wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
-------------------------+--------------------------------------------------

Comment(by wenzeslaus):

Replying to [comment:11 glynn]:
> Replying to [ticket:1952 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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1952#comment:12&gt;
GRASS GIS <http://grass.osgeo.org>