ShellScript context manager functional