Re: pipe error
Bram Moolenaar <[email protected]> Wed, 08 Feb 2006 22:38:05 +0100
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Calmar wrote:
> Hi Bram,
>=20
> > diff -u -r1.28 Dictlist.py
> > --- Dictlist.py 30 May 2005 11:38:36 -0000 1.28
> > +++ Dictlist.py 8 Feb 2006 14:30:18 -0000
> > @@ -357,7 +357,10 @@
> [your patch]
> > >=20
> > > the -print0 thing, is the bad thing probably
> >=20
> > Yes, NULs in the pipe cause trouble.
>=20
> Yeah, that catched it nicely with proper error message:
> ...stat() argument 1 must be (encoded string without NULL bytes), not
> str
OK, that's much better. Thanks for testing this.
> > Aap also has a command that works like "find". Try the ":tree" comma=
nd.
> >=20
>=20
> I tried this:
>=20
> ,----------------------------------------------
> | gall {virtual} :
> | galleryfiles =3D
> | :tree gallery/Albums { skipdir =3D AAPDIR }
> | :print $name
> `----------------------------------------------
>=20
> calmar@tuxli:~/www/calmar> aap gall
> Aap: Internal Error
> Aap: Traceback (most recent call last):
I'll check for an empty command block after ":tree". That can be caught
early, before even executing the stuff.
--=20
Not too long ago, a program was something you watched on TV...
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \=
\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ =
\\\
\\\ download, build and distribute -- http://www.A-A-P.org =
///
\\\ help me help AIDS victims -- http://www.ICCF.nl /=
//
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D=
121642