4 ms·
> The Python code Kragen gave is more characters to type, but fewer footguns. What are the footguns in this? df | grep /$
by oguz-ismail 1y ago
> The Python code Kragen gave is more characters to type, but fewer footguns.
What are the footguns in this?
df | grep /$
- deleted 1y ago[deleted]
- hollerith 1y agoThere are none AFAIK. Allow me to correct my previous comment: using Python's os.spawnlp or Popen to invoke Unix commands has fewer footguns than using the shell. (Kragen's code only addresses your question of how to set up a pipeline in Python.)