mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 04:37:54 +08:00
seq call in getopts should specify negative step
This commit is contained in:
parent
0f2a999fed
commit
d7366e9466
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user