Skip to content

Commit 7b9d962

Browse files
committed
fix: Clarify portability of env -S
1 parent 87ffdec commit 7b9d962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3502-cargo-script.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ Considerations:
512512
- The command that is run in a `#!` line should not require arguments (e.g. not
513513
`#!/usr/bin/env cargo <something>`) because it will fail. `env` treats the
514514
rest of the line as the bin name, spaces included. You need to use `env -S`
515-
but that wasn't supported on macOS at least, last I tested.
515+
but that isn't portable across all `env` implementations (e.g. busybox).
516516
- Either don't have a name that looks like a cargo-plugin (e.g. not
517517
`cargo-<something>`) to avoid confusion or make it work (by default, `cargo
518518
something` translates to `cargo-something something` which would be ambiguous

0 commit comments

Comments
 (0)