emulate
Reset shell options to match a certain shell's behavior. tldr-pages
On several platforms
Several platforms
Reset shell options to match a certain shell's behavior. Also used to ensure a shell function runs with the default configuration.
Print current emulation mode
emulateIdentifyAdjust settings of the current shell session to mimic Bash
emulate bashIdentifyEvaluate a command within temporary emulation
emulate ksh -c "echo hi"IdentifyEmulate the default Zsh, Resetting options when possible
emulate zsh -RIdentifyScope emulation to the current function
my_function() { emulate -L zsh; ls }Identify