Hacker News new | ask | show | jobs
Safe ways to do things in bash (2023) (github.com)
35 points by gautamsomani 83 days ago
1 comments

In Python, `shlex` has utilities for quoting and tokenizing strings for POSIX shells.

> Documentation: https://docs.python.org/3/library/shlex.html

(Windows users: CMD is hopeless. Sorry. Try powershell.)