Builtin Command Errors

These are errors which can be returned by many of the builtin commands. Every builtin also contains a usage message on the proper invocation method.

cd: Not a directory

Tried to change the cwd to a file that isn't a directory.

prefix: could not set prefix, pathname may not exist.

GS/OS Prefix command failed, most likely the pathname did not exist or the disk is damaged.

setdebug: Unknown flag

An unknown flag was sent to setdebug. Run setdebug with no arguments for a list of possible flags.

ps: error in kvm_open()

ps was unable to access the process data structure. If the kernel data structures are damaged to the point that this error occurs, it is likely that you will not be able to see this error.

set: Variable not specified

A variable was not passed to set, for example, "set =bar". Make sure the variable name was specified without the preceding dollar sign. For example, if foo is not set, then "set $foo=bar" would be expanded to "set =bar", resulting in this error.

kill: Invalid signal number, kill: Invalid signal name

See the signal(2) manual page for a list of valid signal names and numbers.

fg: No job to foreground., bg: No job to background., stop: No job to stop.

There aren't currently any jobs so the attempted command is useless.

fg: No such job., bg: No such job., stop: No such job., kill: No such job.

The specified job (or process) doesn't exist.

fg: Gee, this job is already in the foreground., bg: Gee, this job is already in the background., stop: Gee, this job is already stopped.

Well, this should be self-explanatory. Also, some of these should be impossible to get, unless you're bound and determined to crash gsh, but then, these errors will keep you from crashing it, so, what's the point?