Hi Brian,

Brian Drain wrote on Fri, Sep 19, 2008 at 04:40:14PM -0500:

> What does the "suspend" command do?

It's a shell command alias.
Look out for the line
  suspend='kill -STOP $$'
in ksh(1).

> I cannot find a man page on it,

In OpenBSD, most shell builtins and shell command aliases do not have
their own man page or man page symlink.  Such symlinks should not be
added: Many shells have similar builtins, so which shell's man page
would you link?  To see the problem, look at alias(1).  No, the alias
builtin is not csh(1)-specific, ksh(1) has an alias builtin, too.
Also, some shell builtins have the same name and similar functionality
as stand-alone commands, for example echo(1), test(1).
There are exceptions to the rule.  For example, cd(1) is a shell
builtin, but not a stand-alone command.

On the other hand, not having symlinks for builtins makes it a bit
harder to find manual information about them.  But that's less
annoying than a large number of symlinks, pointing mostly at the
man page of the shell you are _not_ using.

Thus, whenever you discover some unknown command (for example,
suspend), try the following commands:
 $ apropos suspend  # see man(1)
 $ which suspend    # see which(1)
 $ alias suspend    # see ksh(1) alias builtin
 $ man ksh          # or whatever shell you are using

Search the shell man page in order to find out whether it's
a shell builtin or a default shell command alias.

> I type suspend at the cmd line, it drops me past the command line.
> Can't ^C or ^Z or anything out of it.  Does it have a purpose?

Try this:

[EMAIL PROTECTED] $ echo $$
22151
[EMAIL PROTECTED] $ sudo -i
[EMAIL PROTECTED] # echo $$
32319
[EMAIL PROTECTED] # suspend
[1] + Suspended (signal)   sudo -i 
[EMAIL PROTECTED] $ echo $$
22151
[EMAIL PROTECTED] $ exit
You have stopped jobs
[EMAIL PROTECTED] $ fg %1
sudo -i 
[EMAIL PROTECTED] # echo $$
32319
[EMAIL PROTECTED] # exit
[EMAIL PROTECTED] $ echo $$
22151
[EMAIL PROTECTED] $ exit

Yours,
  Ingo

Reply via email to