diff options
author | Luke Elliott <luke.b.elliott@gmail.com> | 2021-01-10 11:57:59 +0000 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-01-12 17:42:57 +0000 |
commit | 9efcdba0d59a95d9c5ddd9c32f7870ac2183c5ea (patch) | |
tree | c3b39ce46052047687b729e6f569af2d5f47bc56 /docs/markdown | |
parent | 5ff1a3ab25504563f87ac064ce21826cb0b936aa (diff) | |
download | meson-9efcdba0d59a95d9c5ddd9c32f7870ac2183c5ea.zip meson-9efcdba0d59a95d9c5ddd9c32f7870ac2183c5ea.tar.gz meson-9efcdba0d59a95d9c5ddd9c32f7870ac2183c5ea.tar.bz2 |
Allow '//' as project function id due to git bash path conversion.
See https://stackoverflow.com/questions/54258996/git-bash-string-parameter-with-at-start-is-being-expanded-to-a-file-path
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Rewriter.md | 5 | ||||
-rw-r--r-- | docs/markdown/snippets/rewrite_allow_double_slash_project_id.md | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/markdown/Rewriter.md b/docs/markdown/Rewriter.md index 6414480..20b741f 100644 --- a/docs/markdown/Rewriter.md +++ b/docs/markdown/Rewriter.md @@ -97,6 +97,11 @@ Currently, only the following function types are supported: For more information see the help output of the rewrite kwargs command. +Note msys bash may expand `/` to a path. Passing `//` will be converted to +`/` by msys bash but in order to keep usage shell-agnostic, the rewrite command +also allows `//` as the function ID such that it will work in both msys bash +and other shells. + ### Setting the project default options For setting and deleting default options, use the following command: diff --git a/docs/markdown/snippets/rewrite_allow_double_slash_project_id.md b/docs/markdown/snippets/rewrite_allow_double_slash_project_id.md new file mode 100644 index 0000000..9448ce6 --- /dev/null +++ b/docs/markdown/snippets/rewrite_allow_double_slash_project_id.md @@ -0,0 +1,7 @@ +## `//` is now allowed as a function id for `meson rewrite`. + +msys bash may expand `/` to a path, breaking +`meson rewrite kwargs set project / ...`. Passing `//` will be converted to +`/` by msys bash but in order to keep usage shell-agnostic, also allow `//` +as the id such that `meson rewrite kwargs set project // ...` will work in +both msys bash and other shells. |