[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Toward 0.2
From: |
Nikita Karetnikov |
Subject: |
Re: Toward 0.2 |
Date: |
Fri, 01 Mar 2013 10:01:31 -0500 |
> It’s not needed. All that needed is the name of the executable file
> to wrap.
I don't understand. How will 'rename-file' get the location of the
executable? For example:
(wrap-program "wget" [...])
I guess that it will only work if you invoke 'wrap-program' from the
same directory.
> For the case where there are have several variables you want to set.
Could you provide an example? The following works without '#:rest':
(display (wrap-program "wget" '(("PATH" ":" = ("/nix/.../gawk/bin"))
("CERT_PATH" ":" suffix ("/nix/.../share/certs"
"/nix/.../foo/certs")))))
#!/bin/bash
export PATH="/nix/.../gawk/bin"
export
CERT_PATH="$CERT_PATH${CERT_PATH:+:}:/nix/.../share/certs:/nix/.../foo/certs"
exec ./.wget-real
pgp9QqHfJITae.pgp
Description: PGP signature
- Re: Toward 0.2, Ludovic Courtès, 2013/03/01
- Re: Toward 0.2,
Nikita Karetnikov <=
- Re: Toward 0.2, Ludovic Courtès, 2013/03/01
- Re: Toward 0.2, Nikita Karetnikov, 2013/03/02
- Re: Toward 0.2, Ludovic Courtès, 2013/03/02
- [PATCH] utils: Add 'wrap-program'. (was: Toward 0.2), Nikita Karetnikov, 2013/03/03
- Re: [PATCH] utils: Add 'wrap-program'., Ludovic Courtès, 2013/03/03
- Re: [PATCH] utils: Add 'wrap-program'., Nikita Karetnikov, 2013/03/03
- Re: [PATCH] utils: Add 'wrap-program'., Ludovic Courtès, 2013/03/04