Add example of Windows shebang handling (#1709)

This commit is contained in:
Paul Moore 2023-11-16 21:55:04 +00:00 committed by GitHub
parent 53fec7b449
commit 59ea5de781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1811,7 +1811,9 @@ split shebang lines differently.
Windows does not support shebang lines. On Windows, `just` splits the shebang
line into a command and arguments, saves the recipe body to a file, and invokes
the split command and arguments, adding the path to the saved recipe body as
the final argument.
the final argument. For example, on Windows, if a recipe starts with `#! py`,
the final command the OS runs will be something like `py
C:\Temp\PATH_TO_SAVED_RECIPE_BODY`.
### Safer Bash Shebang Recipes