diff options
author | Brendan Tildesley <mail@brendan.scot> | 2021-04-29 20:33:08 +1000 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-01-10 11:44:29 -0500 |
commit | 7f8a896c5f3ecde60a19f244d5a407ec1033a08d (patch) | |
tree | f0964c46b308d6ac9ca4fcc4e60c07ff0b731e97 /NEWS | |
parent | 41ec0573b81733e15b70312d81cf7fdf77dd63fe (diff) | |
download | guix-7f8a896c5f3ecde60a19f244d5a407ec1033a08d.tar.gz guix-7f8a896c5f3ecde60a19f244d5a407ec1033a08d.zip |
utils: Fix wrap-script argument handling.
* guix/build/utils.scm (wrap-script):
Don't add (car cl) one too many times, cl its self contains it's car.
Split the aguments string with string-tokenize to avoid leaving an empty
string argument when there should be none. These two bugs seemed to
be partially cancelling each other out so that scripts still worked when
ran with no arguments.
* tests/build-utils.scm: Adjust wrap-script to above changes.
Add two tests to ensure the command line arguments appear identical to a
script and its wrapped version.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions