Re: pipe error
Bram Moolenaar <[email protected]> Thu, 09 Feb 2006 11:58:13 +0100
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Calmar wrote:
> it seems, I would not know how to provide you with further
> details, but when using this:
>=20
> :tree gallery/Albums { skipdir =3D AAPDIR }
> :attr { publish =3D ftp://server } "$name"
> :publish $name
>=20
> Error in recipe "/var/www/calmar/main.aap" line 236:=20
> publish failed for "['gallery/Albums/part1' , 'part2, 'part/part3', '=
lastpart.file']"
>=20
> is the message I get:
>=20
> (on a file like that:
> gallery/Albums/part1 part2 part/part3 lastpart.file )
>=20
> or similar.
>=20
> aap seems to split up the file (with spaces inside) itself again in som=
e way?
Ah, yes, the :tree command needs to put the file name in $name with
quotes. This patch will fix it:
diff -u -r1.131 Commands.py
--- Commands.py 14 Dec 2005 18:25:17 -0000 1.131
+++ Commands.py 9 Feb 2006 10:05:45 -0000
@@ -616,7 +616,7 @@
# easier to use, like a "for" loop.
new_rpstack =3D rpcopy(rpstack, cmd_line_nr)
name_save =3D recdict.get("name")
- recdict["name"] =3D f
+ recdict["name"] =3D listitem2str(f)
=20
# Create a ParsePos object to contain the parse position in =
the
# string.
--=20
Not too long ago, a keyboard was something to make music with...
/// 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