On Mon, Apr 8, 2013 at 9:05 PM, Greg Wooledge wrote:
> On Fri, Apr 05, 2013 at 09:15:10AM +0800, konsolebox wrote:
> > The only thing left here is that we can't have error control like when we
> > are to create generally shared library scripts e.g.:
> >
> > function lib_something {
> > declar
On Mon, Apr 08, 2013 at 05:13:46PM -0700, Linda Walsh wrote:
> Greg Wooledge wrote:
> > getent(1) is fine where it's available, but it's not a standard tool,
> > so you can only use it on systems that have it.
> Have you encountered it on other linux systems?
It is present on Debian 3.1 (the olde
Greg Wooledge wrote:
> Linda Walsh wrote:
> > Greg Wooledge wrote:
> > > getent(1) is fine where it's available, but it's not a standard tool,
> > > so you can only use it on systems that have it.
>
> > Have you encountered it on other linux systems?
>
> It is present on Debian 3.1 (the oldest De
On Tue, Apr 09, 2013 at 11:01:49AM -0600, Bob Proulx wrote:
> I am pretty sure that getent is not available on HP-UX for an example
> of a classic legacy Unix system.
I can confirm this up through 11.11:
imadev:~$ uname -a
HP-UX imadev B.10.20 A 9000/785 2008897791 two-user license
imadev:~$ type
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-p$
uname output: Linux colm.tk 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11
Erm, here it is in a less unreadable format:
#!/usr/bin/env bash
typeset -a a=(
curl --header 'Host: v33.veehd.com'
--header 'User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0)
Gecko/20100101 Firefox/19.0'
--header 'Accept:
text/html,application/xhtml+xml,ap
On 4/9/13 9:56 PM, Dan Douglas wrote:
> Erm, here it is in a less unreadable format:
It is pretty slow. You forgot to enable `extglob'.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRUc...@ca
On Tuesday, April 09, 2013 10:23:34 PM Chet Ramey wrote:
> On 4/9/13 9:56 PM, Dan Douglas wrote:
> > Erm, here it is in a less unreadable format:
>
> It is pretty slow. You forgot to enable `extglob'.
D'oh!
Bad algorithm? I suppose it's lots of backtracking and maybe has to test every
substri