You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tilde needs to be escaped only when it's the first character after the white space. Otherwise, we can keep the string unescaped.
This supports bzlmod better, because tilde is used in the directory names.
Users often already escape location function, for example `SJ="$(location @bazel_tools//tools/jdk:singlejar)"; $SJ`. Without the change this becomes `'external/repo~name/singlejar'` and the script fails (no file found).
Location function shouldn't be escaped. But without this change we risk a lot of users will need to fix their scripts.
Closesbazelbuild#16560.
PiperOrigin-RevId: 484226256
Change-Id: I6b71f89a649f8494b76a4446b8f6384421eb89d1
0 commit comments