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
In posixify line 16:
result="$(zoxide query $@)" || return "$?"
^-- SC2068: Double quote array expansions to avoid re-splitting elements.
In posixify line 19:
_z_cd "${result:7}" || return "$?"
^---------^ SC2039: In POSIX sh, string indexing is undefined.
For more information:
https://www.shellcheck.net/wiki/SC2068 -- Double quote array expansions to ...
https://www.shellcheck.net/wiki/SC2039 -- In POSIX sh, string indexing is u...
Is this all that's necessary, or is there more that it missed?
Would be nice to have POSIX sh support instead of just Bash. Would allow people to use zoxide on a wide variety of shells.
The Bash init script doesn't seem too far from being POSIX.
The text was updated successfully, but these errors were encountered: