Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 7c6e76fe authored by Dimitri Fontaine's avatar Dimitri Fontaine

Merge pull request #435 from DarwinAwardWinner/build-fix

Let the shell interpret single-string build commands
parents 69e663aa 0945dd27
......@@ -96,9 +96,12 @@ recursion.
(mapcar (lambda (c)
(let* ((split (cond ((stringp c)
(when (string-match split-string-default-separators c)
(warn "Build command %S in package %s is relying on whitespace splitting. You should rewrite the recipe to use a list of string arguments instead." c package))
(split-string c))
;; `("sh" "-c" ,c) or equivalent
(prog1 (list shell-file-name
(when (not (string= c (shell-quote-argument c)))
(warn "Build command %S in package \"%s\" will be shell-interpolated. To bypass shell interpolation, the recipe for \"%s\" should specify build commands as lists of strings instead." c package package))))
((sequencep c) c)
(t (error "Invalid command: %S" c))))
(c (mapconcat 'identity split " "))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment