Remove test invocations with implicit -n tests

This is something we would like to remove - #2037.
This commit is contained in:
Fabian Homborg 2018-05-17 13:24:26 +02:00
parent 9de28f6887
commit 560985cdee
2 changed files with 4 additions and 4 deletions

View file

@ -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
echo 'threads='\t"sends files concurrently using N independent network connections"
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"
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"
end

View file

@ -18,7 +18,7 @@ function vared --description "Edit variable value"
case '*'
if test (count $$argv ) -lt 2
set -l init ''
if test $$argv
if test -n "$$argv"
set init $$argv
end
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
# function dies
if test $$argv
if test -n "$$argv"
set $argv $tmp
else
set -g $argv $tmp