Documentation
¶
Overview ¶
Package shellquote quotes strings and argument lists for a POSIX shell, and splits a quoted command line back into argv without running one. Quote/Join always quote; QuoteMinimal/JoinMinimal leave shell-safe words bare, for text a person reads.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Join ¶
Join quotes each argument and joins them with spaces into one command line, so the shell that parses it splits the words back exactly where they started.
func Quote ¶
Quote wraps s in single quotes so nothing is expanded or split; embedded single quotes are closed, escaped and reopened. An empty s still quotes to a pair of quotes.
func QuoteMinimal ¶
QuoteMinimal is Quote, but returns a word of shell-literal characters unchanged.
Types ¶
This section is empty.