Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
632ed413
Commit
632ed413
authored
Nov 01, 2023
by
Carlo Sala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(wd): use `(( ))` instead of `[[ ]]`
zsh versions prior to 5.0.6 mark `[[ <num> ]]` as invalid syntax Closes #12017
parent
38c01a23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wd.sh
plugins/wd/wd.sh
+2
-2
No files found.
plugins/wd/wd.sh
View file @
632ed413
...
@@ -396,7 +396,7 @@ fi
...
@@ -396,7 +396,7 @@ fi
# disable extendedglob for the complete wd execution time
# disable extendedglob for the complete wd execution time
setopt |
grep
-q
extendedglob
setopt |
grep
-q
extendedglob
wd_extglob_is_set
=
$?
wd_extglob_is_set
=
$?
[[
$wd_extglob_is_set
]]
&&
setopt noextendedglob
((
!
$wd_extglob_is_set
))
&&
setopt noextendedglob
# load warp points
# load warp points
typeset
-A
points
typeset
-A
points
...
@@ -484,7 +484,7 @@ fi
...
@@ -484,7 +484,7 @@ fi
# if not, next time warp will pick up variables from this run
# if not, next time warp will pick up variables from this run
# remember, there's no sub shell
# remember, there's no sub shell
[[
$wd_extglob_is_set
]]
&&
setopt extendedglob
((
!
$wd_extglob_is_set
))
&&
setopt extendedglob
unset
wd_extglob_is_set
unset
wd_extglob_is_set
unset
wd_warp
unset
wd_warp
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment