Skip to main content

without_trailing_semicolon

Function without_trailing_semicolon 

Source
pub(super) fn without_trailing_semicolon(
    command: &str,
    family: ShellFamily,
) -> &str
Expand description

command without a trailing ; (a POSIX shell, fish, PowerShell): the marker starts with its own ;, and bash refuses ;; outside a case. cmd has no ; separator, so its command is unchanged.