mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 03:21:16 -03:00
Use set -l to force use of a local variable
Bare set overwrites a global/universal variable if it exists.
This commit is contained in:
@@ -138,10 +138,10 @@ end
|
||||
for program in {g,}date
|
||||
if command -q $program && $program --version 1>/dev/null 2>/dev/null
|
||||
set -g milli $program
|
||||
set unit ms
|
||||
set -g unit ms
|
||||
break
|
||||
else
|
||||
set unit sec
|
||||
set -g unit sec
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user