1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-01 11:13:24 -07:00

work around a really obtuse zsh quirk with numeric types

i should do this for the rest of the loops in the other files too.
This commit is contained in:
Connor Olding 2022-03-05 17:39:44 -08:00
parent 9116e418cf
commit 7d895d20a7

View File

@ -88,7 +88,7 @@ mpv_watch() { ### @-
pushd ~/play >/dev/null
local url="$1"; shift
local seen=0 A=()
local seen=0 A=() a= # need to make loop vars local thanks to numeric types in zsh
# for a; do [ "$a" = "${a#--ytdl-format}" ] && A+=("$a") || seen=1; done
for a; do A+=("$a"); done # bypass ytdl-format checks
[ $seen = 0 ] || printf '%s\n' "NOTE: the --ytdl-format flag is temporarily ignored due to throttling issues." >&2