[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] Re: Tla spork
From: |
Miles Bader |
Subject: |
Re: [Gnu-arch-users] Re: Tla spork |
Date: |
Thu, 26 Aug 2004 17:26:55 -0400 |
User-agent: |
Mutt/1.3.28i |
On Thu, Aug 26, 2004 at 10:38:03AM -0700, Tom Lord wrote:
> There are lots of ways to do that that don't involve adding
> environment variable sensitivity to arch itself. You could simply
> wrap arch:
>
> tla --hat $HAT "$@"
>
> or you could do something fancier. For example, how about a
> command like:
>
> % tla with-constant-params [params] > xtla
> % chmod u+x xtla
>
> as in:
>
> % tla with-constant-params --hat hacker > xtla
> % chmod u+x xtla
>
> % ./xtla my-hat
> hacker
Those don't interact well with scripts (and I think any method that requires
you to create an executable file is just slightly odd).
Even if they're often abused, environment variables aren't _always_ an
inappropriate solution ... :-)
Env vars are like dynamic binding in lisp. Dynamic binding is certainly out
of favor for general use, but implementations usually go to some trouble to
retain it in some form, because occasionally it _is_ the right answer.
-Miles
--
P.S. All information contained in the above letter is false,
for reasons of military security.
- Re: [Gnu-arch-users] Re: Tla spork, (continued)
- Re: [Gnu-arch-users] Re: Tla spork, Zenaan Harkness, 2004/08/27
- Re: [Gnu-arch-users] Re: Tla spork, Miles Bader, 2004/08/28
- Re: [Gnu-arch-users] Re: Tla spork, James Blackwell, 2004/08/28
- Re: [Gnu-arch-users] Re: Tla spork, Tom Lord, 2004/08/28
- Re: [Gnu-arch-users] Re: Tla spork, Stefan Monnier, 2004/08/27
- Re: [Gnu-arch-users] Re: Tla spork, Matthew Dempsky, 2004/08/27
- Re: [Gnu-arch-users] Re: Tla spork, Andrew Suffield, 2004/08/27
- Re: [Gnu-arch-users] Re: Tla spork, Tom Lord, 2004/08/26
- Re: [Gnu-arch-users] Re: Tla spork,
Miles Bader <=
- Re: [Gnu-arch-users] Re: Tla spork, mlh, 2004/08/27
- [Gnu-arch-users] Re: Tla spork, Miles Bader, 2004/08/27
- Re: [Gnu-arch-users] Re: Tla spork, mlh, 2004/08/27
- Re: [Gnu-arch-users] Re: Tla spork, Zenaan Harkness, 2004/08/27
- [Gnu-arch-users] Re: Tla spork, Stefan Monnier, 2004/08/27
- Re: [Gnu-arch-users] Tla spork, Matthew Dempsky, 2004/08/24
- Re: [Gnu-arch-users] Tla spork, Tom Lord, 2004/08/24
- Re: [Gnu-arch-users] Tla spork, Matthew Dempsky, 2004/08/24
- Re: [Gnu-arch-users] Tla spork, Tom Lord, 2004/08/24
- Re: [Gnu-arch-users] Tla spork, Zenaan Harkness, 2004/08/27