summary refs log tree commit diff
path: root/doc/fdl-1.3.texi
diff options
context:
space:
mode:
authorBrendan Tildesley <mail@brendan.scot>2021-04-29 20:33:08 +1000
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-01-10 11:44:29 -0500
commit7f8a896c5f3ecde60a19f244d5a407ec1033a08d (patch)
treef0964c46b308d6ac9ca4fcc4e60c07ff0b731e97 /doc/fdl-1.3.texi
parent41ec0573b81733e15b70312d81cf7fdf77dd63fe (diff)
downloadguix-7f8a896c5f3ecde60a19f244d5a407ec1033a08d.tar.gz
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 'doc/fdl-1.3.texi')
0 files changed, 0 insertions, 0 deletions