Re: Aap - Reading recipes from stdin
Bram Moolenaar <[email protected]> Sun, 25 Sep 2005 15:16:05 +0200
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
François Pinard wrote: > In some shell scripts, I would like being able to call ``aap`` while > giving it the recipe file as a kind of constant, instead of creating > a temporary file to hold it, and making sure that temporary file is > removed afterwards. Something like:: > > echo ' > Contents > of > recipe > file > ' | aap -f - > > if only ``-`` was meaning standard input, say, when given to ``-f``. > I would like to merely hide ``aap`` calls in scripts, for a directory > already full of scripts which users already call as scripts. A problem I see with this is that there is no directory for the script. It's very important, since all file names are relative to the directory of the script file. One could assume the current directory though. That should be OK, so long as the user is made aware of it. > Another avenue, which would be much nicer if doable, would be to > she-bang an Aap recipe (that is, adding a ``#!/usr/bin/env aap -f -`` > line or such at the beginning) and then, adding executable bits on the > recipe file. A problem might exist with parameter passing, maybe not. Yes, it would be nice if this worked. -- There are 10 kinds of people: Those who understand binary and those who don't. /// 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 LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html /// ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php