1*9a7741deSElliott Hughesecho T.system: test system built-in 2*9a7741deSElliott Hughes 3*9a7741deSElliott Hughesawk=${awk-../a.out} 4*9a7741deSElliott Hughes 5*9a7741deSElliott Hughesrm -f foo 6*9a7741deSElliott Hughes$awk 'BEGIN { 7*9a7741deSElliott Hughes n = system("exit 3") 8*9a7741deSElliott Hughes print n 9*9a7741deSElliott Hughes exit n+1 10*9a7741deSElliott Hughes} 11*9a7741deSElliott Hughes' >foo 12*9a7741deSElliott Hughesecho $? >>foo 13*9a7741deSElliott Hughesecho "3 14*9a7741deSElliott Hughes4" >foo1 15*9a7741deSElliott Hughesdiff foo foo1 || echo 'BAD: T.system (1)' 16