Re: [PATCH 10/10] t5710: use proper file:// URIs for absolute paths
- From
Christian Couder <christian.couder@gmail.com>
- Date
- Apr 7, 2026, 12:02 UTC
- Message-ID
- <CAP8UFD0pa9OOHwBtiK_+xE5jq6Qq3YPi=E_kNLpQt==soFXmGw@mail.gmail.com>
- In-Reply-To
- <CAP8UFD3CMwTjC36Grhb6_6q0SBWtTwBX4_kM5sf+peTgd7P3dA@mail.gmail.com>
On Fri, Apr 3, 2026 at 10:16 AM Christian Couder <christian.couder@gmail.com> wrote:
Show 8 quoted lines
> # Allowed characters: alphanumeric, standard path/URI (_ . ~ / : -), > and those percent-encoded below (% space = ; ,) > case "$pwd_path" in > *[!a-zA-Z0-9_.~/:%\ =,;-]*) > skip_all="PWD contains unsupported special characters" > test_done > ;; > esac
It turned out that dash and perhaps other shells don't support a space character in a case bracket expressions, so I used the following instead:
# Allowed characters: alphanumeric, standard path/URI (_ . ~ / : -),
# and those percent-encoded below (% space = , ;)
rest=$(printf "%s" "$pwd_path" | tr -d 'a-zA-Z0-9_.~/:% =,;-')
if test -n "$rest"
then
skip_all="PWD contains unsupported special characters"
test_done
fi