spiegel_podman/vendor/github.com/mattn/go-shellwords
tomsweeneyredhat e1b0a045d4 [v4.2.0-rhel] Bump Buildah to v1.27.4
As the title says.  Bumping to address:
CVE-2024-1753

https://issues.redhat.com/browse/RHEL-26761

[NO NEW TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-04-02 16:52:20 -04:00
..
.travis.yml Bump github.com/containers/storage from 1.24.5 to 1.25.0 2021-02-03 09:10:07 -05:00
go.test.sh Update c/image to v4.0.1 and buildah to 1.11.3 2019-10-04 20:18:23 +02:00
LICENSE migrate to go-modules 2019-06-24 13:20:59 +02:00
README.md Bump github.com/containers/storage from 1.24.5 to 1.25.0 2021-02-03 09:10:07 -05:00
shellwords.go Bump github.com/containers/storage from 1.32.1 to 1.32.2 2021-06-10 06:28:23 +00:00
util_posix.go Bump github.com/containers/storage from 1.24.5 to 1.25.0 2021-02-03 09:10:07 -05:00
util_windows.go Bump github.com/containers/storage from 1.24.5 to 1.25.0 2021-02-03 09:10:07 -05:00

go-shellwords

codecov Build Status PkgGoDev ci

Parse line as shell words.

Usage

args, err := shellwords.Parse("./foo --bar=baz")
// args should be ["./foo", "--bar=baz"]
envs, args, err := shellwords.ParseWithEnvs("FOO=foo BAR=baz ./foo --bar=baz")
// envs should be ["FOO=foo", "BAR=baz"]
// args should be ["./foo", "--bar=baz"]
os.Setenv("FOO", "bar")
p := shellwords.NewParser()
p.ParseEnv = true
args, err := p.Parse("./foo $FOO")
// args should be ["./foo", "bar"]
p := shellwords.NewParser()
p.ParseBacktick = true
args, err := p.Parse("./foo `echo $SHELL`")
// args should be ["./foo", "/bin/bash"]
shellwords.ParseBacktick = true
p := shellwords.NewParser()
args, err := p.Parse("./foo `echo $SHELL`")
// args should be ["./foo", "/bin/bash"]

Thanks

This is based on cpan module Parse::CommandLine.

License

under the MIT License: http://mattn.mit-license.org/2017

Author

Yasuhiro Matsumoto (a.k.a mattn)