$STTY  –  stty setup before command execution

$STTY defines arguments for the stty command. If this variable is defined in the environment of the command to execute, then Zsh executes stty $STTY before the command is executed.

$STTY is ignored if it’s defined in the shell’s environment and not only for the command to execute.

Examples

Convert command output to UPPERCASE
1
STTY=olcuc /usr/bin/echo hello world
Output:
1
HELLO WORLD
BashSupport Pro is a Zsh IDE with support for $STTYtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal