logoalt Hacker News

Safe ways to do things in bash (2023)

21 pointsby gautamsomaniyesterday at 8:27 PM1 commentview on HN

Comments

hun3today at 6:08 AM

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.)