>PROMPT_COMMAND='pwd>&8;kill -STOP $$'
It's setting the PROMPT_COMMAND system variable to the command in
the brackets. This variable alwasy contains a command to be run just before
displaying the shell. The command itself is first redirecting output from
pwd(print working directory) to a file with file descriptor 8 (open file).
After that the semi colon means execute the commands sequentially so we're
on to kill -STOP $$, $$ expands to current process which is this one ...
kill -stop will stop but NOT kill the preocess.
So what you have altogether is a command that runs before the shell
prompt is displayed, redirects the current directoy path to some file and
then stops itself but remains alive ... Any help ?
Irish Linux Users' Group: ilug at linux.iehttp://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
List maintainer: listmaster at linux.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!