]> git.ipfire.org Git - thirdparty/automake.git/commit
compile, depcomp, ylwrap: Fix quoting bug in 'trap' command.
authorBruno Haible <bruno@clisp.org>
Fri, 29 May 2026 13:55:27 +0000 (15:55 +0200)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 29 May 2026 21:59:29 +0000 (14:59 -0700)
commiteb4ebe2f049f7169ee7671fccc487d095ee0ac0e
tree2f6ce057dccb9890ffd3756f5996d9f22f5d7bbf
parent658cceb3cc5530fdf8acf437caef98e423c964a0
compile, depcomp, ylwrap: Fix quoting bug in 'trap' command.

Reported by an AI tool in the name of MichaƂ Majchrowicz.

Based on the idea from Autoconf commit 416b8f50c9bd4e38f9bc48b946505d2a18f6b1fd:
Use a shell function to avoid quoting hassles inside a 'trap' argument.

* lib/compile (cleanup): New function.
(trap): Use it.
* lib/depcomp (cleanup): New function.
(trap): Use it.
* lib/ylwrap (origdirname): New variable.
(cleanup): New function.
(do_exit): Use it.
lib/compile
lib/depcomp
lib/ylwrap