b38bf27a83
OBS-URL: https://build.opensuse.org/package/show/shells/ksh?expand=0&rev=801a275e15dbfa0ed341aacf1db056a8
40 lines
458 B
Bash
40 lines
458 B
Bash
#!/bin/ksh
|
|
|
|
trap 'echo "[${0##*/}: crash]"' SIGSEGV SIGABRT SIGBUS SIGFPE
|
|
|
|
function crash
|
|
{
|
|
typeset L_FILE
|
|
typeset L_VALIDATION
|
|
typeset L_VARIABLE
|
|
typeset L_MOD IFS
|
|
|
|
OS=$(uname)
|
|
}
|
|
|
|
crash
|
|
|
|
function crash2
|
|
{
|
|
typeset IFS
|
|
IFS='\t'
|
|
true
|
|
unset IFS
|
|
echo a b c | while read x y z; do
|
|
echo $x
|
|
echo $y
|
|
echo $z
|
|
done
|
|
}
|
|
|
|
crash2
|
|
|
|
echo a b c | while read x y z; do
|
|
echo $x
|
|
echo $y
|
|
echo $z
|
|
done
|
|
|
|
echo "[${0##*/}: success]"
|
|
# end here
|