Lines Matching defs:print
22 print -u2 -n "\t"
23 print -u2 -r ${Command}[$1]: "${@:2}"
45 1) print -r - "$foo" "$bar";;
46 2) print -r - "$0";;
49 print -r - "$foo" "$bar";;
54 function print
56 command print hi
58 if [[ $(print) != hi ]]
59 then err_exit "command print not working inside print function"
61 unset -f print
101 abc() print hi
103 then err_exit 'abc() print hi not working'
107 then err_exit 'abc() print hi not working after subshell unset'
124 print bar
143 print -r -- "$1"
178 print -r -- "$1"
186 print hello
191 print bar
203 print "$y"
219 print foo
249 print done
251 if [[ $( (winpath --man 2>/dev/null); print ok) != ok ]]
254 if [[ $( (winpath -z 2>/dev/null); print ok) != ok ]]
260 print "$@"
305 then print $(myexport "$1" "$3" )
310 print ${val#"$1="}
352 print $zzz
360 do print i=$i j=$j
391 print a
394 print 1
396 print 2
405 print 'false' > try
413 trap "print error; exit 1" ERR
420 print ': This does nothing' > foobar
429 print 'set a b c' > dotscript
430 [[ $(PATH=$PATH: $SHELL -c '. dotscript;print $#') == 3 ]] || err_exit 'positional parameters not preserved with . script without arguments'
434 trap 'print ERR; return 1' ERR
436 print ok
443 print ok
454 print ${.sh.fun}
458 print $'a(){\ndate\n}' | $SHELL 2> /dev/null || err_exit 'parser error in a(){;date;}'
764 print -r -- "$foo$bar"
768 print -r -- $(bar=bam f)
783 else print ok
797 then print failed
838 print exit 0 > '$tmp'/script
864 do print OPTIND=$OPTIND
923 print -r -- "${.sh.value}"
987 print -r -- "${.sh.lineno}"
993 ( $SHELL -c ' function foo { typeset x=$1;print $1;};z=();z=($(foo bar)) ') 2> /dev/null || err_exit 'using a function to set an array in a command sub fails'
1009 f 257 && print ok
1019 print \$\$
1035 print foo
1052 print $'print hello\nprint world' > $tmp/foo
1064 print foobar
1091 trap "> /dev/null;print TRAP A" EXIT
1092 # (( stderr )) && print >&2
1097 trap "> /dev/null;print TRAP B" EXIT
1122 print ok
1152 function f1 { print -n ${.sh.fun}; set -o | grep xtrace;}
1153 function f2 { print -n ${.sh.fun}; set -o | grep xtrace;}