Lines Matching refs:sh
34 [[ ${.sh.version} == "$KSH_VERSION" ]] || err_exit '.sh.version != KSH_VERSION'
117 nameref foo=${.sh.name}.save
118 foo=${.sh.value}
119 .sh.value=$0
127 nameref foo=${.sh.name}.save
128 .sh.value=$foo
179 .sh.value=stuff
451 then file=${.sh.file}
459 [[ $(posixfun .sh.file) == $tmp/script ]] || err_exit ".sh.file not working for posix functions"
460 [[ $(fun .sh.file) == $tmp/script ]] || err_exit ".sh.file not working for functions"
461 [[ $(posixfun .sh.fun) == posixfun ]] || err_exit ".sh.fun not working for posix functions"
462 [[ $(fun .sh.fun) == fun ]] || err_exit ".sh.fun not working for functions"
463 [[ $(posixfun .sh.subshell) == 1 ]] || err_exit ".sh.subshell not working for posix functions"
464 [[ $(fun .sh.subshell) == 1 ]] || err_exit ".sh.subshell not working for functions"
466 …[[ $(posixfun .sh.subshell) == 2 ]] || err_exit ".sh.subshell not working for posix functions in …
467 … [[ $(fun .sh.subshell) == 2 ]] || err_exit ".sh.subshell not working for functions in subshells"
468 (( .sh.subshell == 1 )) || err_exit ".sh.subshell not working in a subshell"
472 : ${.sh.version}
473 [[ $(alias integer) == *.sh.* ]] && err_exit '.sh. prefixed to alias name'
474 : ${.sh.version}
475 [[ $(whence rm) == *.sh.* ]] && err_exit '.sh. prefixed to tracked alias name'
476 : ${.sh.version}
477 [[ $(cd /bin;env | grep PWD=) == *.sh.* ]] && err_exit '.sh. prefixed to PWD'
510 .sh.value+=$dave
521 .sh.foobar=hello
523 function .sh.foobar.get
525 .sh.value=world
528 [[ ${.sh.foobar} == world ]] || err_exit 'get discipline for .sh.foobar not working'
547 case ${.sh.subscript} in
548 bar) if ((.sh.value > 1 ))
549 then .sh.value=5
554 if [[ ${.sh.value} = yes ]]
575 typeset sub=${.sh.subscript}
576 (( sub > 0 )) && (( x[sub-1]= x[sub-1] + .sh.value ))
592 [[ ${.sh.subshell} == 0 ]] || err_exit '${.sh.subshell} should be 0'
594 [[ ${.sh.subshell} == 1 ]] || err_exit '${.sh.subshell} should be 1'
596 [[ ${.sh.subshell} == 2 ]] || err_exit '${.sh.subshell} should be 2'