104 lines
1.4 KiB
Fish
104 lines
1.4 KiB
Fish
if status is-interactive
|
|
function sysexit
|
|
switch $argv[1]
|
|
case 0
|
|
echo OK
|
|
case 64
|
|
echo USAGE
|
|
case 65
|
|
echo DATAERR
|
|
case 66
|
|
echo NOINPUT
|
|
case 67
|
|
echo NOUSER
|
|
case 68
|
|
echo NOHOST
|
|
case 69
|
|
echo UNAVAILABLE
|
|
case 70
|
|
echo SOFTWARE
|
|
case 71
|
|
echo OSERR
|
|
case 72
|
|
echo OSFILE
|
|
case 73
|
|
echo CANTCREAT
|
|
case 74
|
|
echo IOERR
|
|
case 75
|
|
echo TEMPFAIL
|
|
case 76
|
|
echo PROTOCOL
|
|
case 77
|
|
echo NOPERM
|
|
case 78
|
|
echo CONFIG
|
|
case 127
|
|
echo NOTFOUND
|
|
case 129
|
|
echo SIGHUP
|
|
case 130
|
|
echo SIGINT
|
|
case 131
|
|
echo SIGQUIT
|
|
case 132
|
|
echo SIGILL
|
|
case 133
|
|
echo SIGTRAP
|
|
case 134
|
|
echo SIGABRT
|
|
case 135
|
|
echo SIGBUS
|
|
case 136
|
|
echo SIGFPE
|
|
case 137
|
|
echo SIGKILL
|
|
case 138
|
|
echo SIGUSR1
|
|
case 139
|
|
echo SIGSEGV
|
|
case 140
|
|
echo SIGUSR2
|
|
case 141
|
|
echo SIGPIPE
|
|
case 142
|
|
echo SIGALRM
|
|
case 143
|
|
echo SIGTERM
|
|
case 144
|
|
echo SIGSTKFLT
|
|
case 145
|
|
echo SIGCHLD
|
|
case 146
|
|
echo SIGCONT
|
|
case 147
|
|
echo SIGSTOP
|
|
case 148
|
|
echo SIGTSTP
|
|
case 149
|
|
echo SIGTTIN
|
|
case 150
|
|
echo SIGTTOU
|
|
case 151
|
|
echo SIGURG
|
|
case 152
|
|
echo SIGXCPU
|
|
case 153
|
|
echo SIGXFSZ
|
|
case 154
|
|
echo SIGVTALRM
|
|
case 155
|
|
echo SIGPROF
|
|
case 156
|
|
echo SIGWINCH
|
|
case 157
|
|
echo SIGIO
|
|
case 158
|
|
echo SIGPWR
|
|
case 159
|
|
echo SIGSYS
|
|
case '*'
|
|
echo $argv[1]
|
|
end
|
|
end
|
|
end
|