Skip to content
Snippets Groups Projects
Commit d7366e94 authored by Jorge Bucaran's avatar Jorge Bucaran
Browse files

seq call in getopts should specify negative step

parent 0f2a999f
No related merge requests found
......@@ -16,4 +16,3 @@ RUN /src/script/bootstrap.sh
WORKDIR /root/.oh-my-fish
CMD ["fish", "./script/run-tests.fish", "--verbose"]
......@@ -277,7 +277,7 @@ function getopts
set -l tokens (printf $substring | tr : \n)
# Start last to first to avoid mistaking long w/ short options.
for index in (seq (count $tokens) 1)
for index in (seq (count $tokens) -1 1)
set -l last_token (printf $substring | tail -c1)
# Find options with optional argument in long-style and
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment