shellwords

package
v0.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package shellwords provides POSIX shell-style word splitting, replacing the kballard/go-shellquote and google/shlex dependencies with mvdan.cc/sh/v3.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Split

func Split(s string) ([]string, error)

Split splits the given command line string into words according to POSIX shell word-splitting rules, removing quotes and resolving backslash escapes.

No variable or parameter expansion is performed: expansions survive as literal text for the execution environment (typically a container shell) to interpret. Command and process substitution are rejected because they would require running a shell locally.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL