2019-01-15 18:19:51 +01:00
|
|
|
# ksh
|
|
|
|
|
2021-05-20 16:13:41 -04:00
|
|
|
> Korn Shell, a Bash-compatible command-line interpreter.
|
2021-04-14 10:07:21 -04:00
|
|
|
> See also `histexpand` for history expansion.
|
2019-06-05 08:55:48 +01:00
|
|
|
> More information: <http://kornshell.com>.
|
2019-01-15 18:19:51 +01:00
|
|
|
|
2021-04-14 10:07:21 -04:00
|
|
|
- Start an interactive shell session:
|
2019-01-15 18:19:51 +01:00
|
|
|
|
|
|
|
`ksh`
|
|
|
|
|
2021-04-14 10:07:21 -04:00
|
|
|
- Execute a command and then exit:
|
2019-01-15 18:19:51 +01:00
|
|
|
|
2021-04-14 10:07:21 -04:00
|
|
|
`ksh -c "{{command}}"`
|
2019-01-15 18:19:51 +01:00
|
|
|
|
2021-04-14 10:07:21 -04:00
|
|
|
- Execute a script:
|
2019-01-15 18:19:51 +01:00
|
|
|
|
2021-04-14 10:07:21 -04:00
|
|
|
`ksh {{path/to/script.ksh}}`
|
2019-01-15 18:19:51 +01:00
|
|
|
|
2021-04-14 10:07:21 -04:00
|
|
|
- Execute a script, printing each command before executing it:
|
2019-01-15 18:19:51 +01:00
|
|
|
|
2021-04-14 10:07:21 -04:00
|
|
|
`ksh -x {{path/to/script.ksh}}`
|