Is it possible to augment a sticky emulation mode with additional options? Specifically, I'd like the something like the following to return zero: emulate -R sh -c 'setopt kshglob; function foo() {; setopt; }'; foo | grep kshglob -- Russell Harmon