mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Remove test
invocations with implicit -n
tests
This is something we would like to remove - #2037.
This commit is contained in:
parent
9de28f6887
commit
560985cdee
2 changed files with 4 additions and 4 deletions
|
@ -242,10 +242,10 @@ function __fish_print_p4_parallel_options -d "Values for --parallel option in va
|
||||||
# for now only looks that mode is set, later it will need to have a specific setting
|
# for now only looks that mode is set, later it will need to have a specific setting
|
||||||
echo 'threads='\t"sends files concurrently using N independent network connections"
|
echo 'threads='\t"sends files concurrently using N independent network connections"
|
||||||
echo 'batch='\t"specifies the number of files in a batch"
|
echo 'batch='\t"specifies the number of files in a batch"
|
||||||
test "$mode"
|
test -n "$mode"
|
||||||
or echo 'batchsize='\t"specifies the number of bytes in a batch"
|
or echo 'batchsize='\t"specifies the number of bytes in a batch"
|
||||||
echo 'min='\t"specifies the minimum number of files in a parallel sync"
|
echo 'min='\t"specifies the minimum number of files in a parallel sync"
|
||||||
test "$mode"
|
test -n "$mode"
|
||||||
or echo 'minsize='\t"specifies the minimum number of bytes in a parallel sync"
|
or echo 'minsize='\t"specifies the minimum number of bytes in a parallel sync"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ function vared --description "Edit variable value"
|
||||||
case '*'
|
case '*'
|
||||||
if test (count $$argv ) -lt 2
|
if test (count $$argv ) -lt 2
|
||||||
set -l init ''
|
set -l init ''
|
||||||
if test $$argv
|
if test -n "$$argv"
|
||||||
set init $$argv
|
set init $$argv
|
||||||
end
|
end
|
||||||
set -l prompt 'set_color green; echo '$argv'; set_color normal; echo "> "'
|
set -l prompt 'set_color green; echo '$argv'; set_color normal; echo "> "'
|
||||||
|
@ -30,7 +30,7 @@ function vared --description "Edit variable value"
|
||||||
# global, so that it will not die when this
|
# global, so that it will not die when this
|
||||||
# function dies
|
# function dies
|
||||||
|
|
||||||
if test $$argv
|
if test -n "$$argv"
|
||||||
set $argv $tmp
|
set $argv $tmp
|
||||||
else
|
else
|
||||||
set -g $argv $tmp
|
set -g $argv $tmp
|
||||||
|
|
Loading…
Reference in a new issue