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/rexport | |
parent | 8a7f897b30780dbf9b733fa413d679140fd1c27a (diff) |
rcpu: fix pvar to initialize empty variables (thanks mycroftiv)
Diffstat (limited to 'rc/bin/rexport')
-rwxr-xr-x | rc/bin/rexport | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rc/bin/rexport b/rc/bin/rexport index a7364e58f..99030a363 100755 --- a/rc/bin/rexport +++ b/rc/bin/rexport @@ -49,7 +49,8 @@ cmd=$* fn pvar { while(! ~ $#* 0){ - ~ $#$1 0 || path=/dev/null builtin whatis $1 + ~ $#$1 0 && echo $1'=()' || + path=/dev/null builtin whatis $1 shift } } |