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'
519 .sh.value+=$dave
530 .sh.foobar=hello
532 function .sh.foobar.get
534 .sh.value=world
537 [[ ${.sh.foobar} == world ]] || err_exit 'get discipline for .sh.foobar not working'
556 case ${.sh.subscript} in
557 bar) if ((.sh.value > 1 ))
558 then .sh.value=5
563 if [[ ${.sh.value} == yes ]]
584 typeset sub=${.sh.subscript}
585 (( sub > 0 )) && (( x[sub-1]= x[sub-1] + .sh.value ))
601 [[ ${.sh.subshell} == 0 ]] || err_exit '${.sh.subshell} should be 0'
603 [[ ${.sh.subshell} == 1 ]] || err_exit '${.sh.subshell} should be 1'
605 [[ ${.sh.subshell} == 2 ]] || err_exit '${.sh.subshell} should be 2'