MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / shell_quote_with_backslash

Function shell_quote_with_backslash

atomic-cli/src/commands/update.rs:940–943  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

938
939 #[test]
940 fn shell_quote_with_backslash() {
941 // Backslash inside single quotes is literal (unlike double quotes).
942 assert_eq!(shell_quote(r"/opt/atomic\bin"), r"'/opt/atomic\bin'");
943 }
944
945 #[test]
946 fn shell_quote_with_single_quote() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected