Data and Math
vshlex
Splits and quotes a command line the way a shell would.
Released v1.0.0 · 2026-09-28use "stdlib/shlex.ven"
Shell style tokenizing and quoting, splitting a command line into its words the way a shell would and quoting a word safely for reuse in one, built on Venutian's own shell splitting builtin. It is meant for a program that has to build or read a command line safely, without writing its own quoting rules by hand.
print split("cp -v 'my file.txt' /tmp")