diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-11-13 11:03:37 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-11-13 11:03:37 +0100 |
commit | 76812c9bb71193b7a9a4d059890915535ef49441 (patch) | |
tree | 26f906dd5b6c1449314ce1caa9a7a7e6b0fa419c /rc/bin/rcpu | |
parent | 8a7f897b30780dbf9b733fa413d679140fd1c27a (diff) |
rcpu: fix pvar to initialize empty variables (thanks mycroftiv)
Diffstat (limited to 'rc/bin/rcpu')
-rwxr-xr-x | rc/bin/rcpu | 3 |
1 files changed, 2 insertions, 1 deletions
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 } } |