Hello, I am getting the following error when trying to use trap with -x:

#!/usr/local/bin/execlineb -W

define VAR THISISAVAR

trap -x {
         SIGQUIT { importas VAR VAR foreground { echo $VAR } }
         SIGTERM { importas VAR VAR foreground { echo $VAR } }
         SIGINT    { importas VAR VAR foreground { echo $VAR } }
} sleep 100

trap: fatal: unable to auto-trap signal 9: Invalid argument

on OpenBSD.

Thanks!

Reply via email to