Expand description
Splitting argv into rash’s own options and ssh’s.
autossh validates every argument against a hardcoded getopt(3) string
(OPTION_STRING, autossh.c:112) and prints usage for anything it does not
recognise, so every new OpenSSH option breaks it until that string is
updated. On OpenSSH 10.3 it already rejects -B bind_interface outright and
mis-parses -P tag as a boolean.
rash classifies only what it needs to — -M, -f, -V — and passes
everything else through untouched, so an unrecognised option is forwarded to
ssh rather than being an error here.
Structs§
- Invocation
- What rash was asked to do, before any environment or config file is consulted.
Enums§
Functions§
- parse
- Split
argv(excluding argv[0]) into rash’s options and ssh’s. - quote
- Render an argv the way a shell would need it written, for
--dry-run. - splice_
forwards - Splice the monitor forwards into
argsatat, clamped to the end.