Function spurs_util::escape_for_bash[][src]

pub fn escape_for_bash(s: &str) -> String
Expand description

Given a string, properly escape the string so that it can be passed as a command line argument to bash.

This is useful for passing commands to bash -c (e.g. through ssh).