Re: Attributes and :include
Bram Moolenaar <[email protected]> Sat, 02 Oct 2004 21:04:55 +0200
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Tim Hemel wrote:
> Ok, I can reproduce the original bug as well. For this, I have changed
> the child.aap to the following:
>
> @for i in var2list(Items):
> :mkdir {f} bla
> :pushdir bla
> :print `get_attr(i)`
> :popdir
[...]
> All attributes are gone, and it is apparently caused by the :pushdir
> command.
After changing directories the meaning of a node name changes, it is
relative to the current directory.
> My workaround is to copy the variables first and then use them,
> like:
>
> @d = `get_attr(i)`
> :pushdir bla
> :print `d`
> :popdir
That's fine. You could also use absolute path names to avoid the effect
of changing directory.
--
hundred-and-one symptoms of being an internet addict:
49. You never have to deal with busy signals when calling your ISP...because
you never log off.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl