Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Augmenting a Sticky Emulation Mode



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



Messages sorted by: Reverse Date, Date, Thread, Author