<[EMAIL PROTECTED]> writes: >For example, emacs could send the shell something like "shopt > -u -o emacs; shopt -u -o vi". Then emacs could leave EMACS alone.
Stuffing input to a subshell like that is in general not something you can do reliably. -miles -- We are all lying in the gutter, but some of us are looking at the stars. -Oscar Wilde
