From 76812c9bb71193b7a9a4d059890915535ef49441 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 13 Nov 2018 11:03:37 +0100 Subject: rcpu: fix pvar to initialize empty variables (thanks mycroftiv) --- rc/bin/rcpu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rc/bin/rcpu') diff --git a/rc/bin/rcpu b/rc/bin/rcpu index 1a6b83b83..54f670c67 100755 --- a/rc/bin/rcpu +++ b/rc/bin/rcpu @@ -76,7 +76,8 @@ while(~ $1 -*){ fn pvar { while(! ~ $#* 0){ - ~ $#$1 0 || path=/dev/null builtin whatis $1 + ~ $#$1 0 && echo $1'=()' || + path=/dev/null builtin whatis $1 shift } } -- cgit v1.2.3