Works great, thanks. I notice however that the following crashes zsh: emulate -R sh -o braceexpand -c 'foo() {; setopt; }' (specifically, setting braceexpand this way causes the crash) -- Russell Harmon On Fri, Apr 26, 2013 at 6:01 PM, Bart Schaefer wrote: > On Apr 26, 2:40pm, Russell Harmon wrote: > } > } Is it possible to augment a sticky emulation mode with additional > options? > > Yes, but it requires version 5.0.x. > > } Specifically, I'd like the something like the following to return zero: > } emulate -R sh -c 'setopt kshglob; function foo() {; setopt; }'; foo | > grep kshglob > > emulate -R sh -o kshglob -c 'foo() {; setopt; }'; foo | grep kshglob >