From 294b33144fbf5628d2a672f907c1f5460577234a Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Tue, 19 Nov 2019 20:07:02 +0100 Subject: docs: clarify how Meson handles shebang in run_command [skip ci] --- docs/markdown/External-commands.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/markdown/External-commands.md b/docs/markdown/External-commands.md index cafd280..e8f335f 100644 --- a/docs/markdown/External-commands.md +++ b/docs/markdown/External-commands.md @@ -39,6 +39,9 @@ which is unwanted in string variables. The first argument can be either a string or an executable you have detected earlier with `find_program`. +Meson will autodetect scripts with a shebang line and run them with +the executable/interpreter specified in it both on Windows and on Unixes. + Note that you can not pass your command line as a single string. That is, calling `run_command('do_something foo bar')` will not work. You must either split up the string into separate arguments or pass the -- cgit v1.1