Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Seems like you could even use a more serious programming language instead of sh/bash by setting SHELL to Python or similar. That may be a road to madness though...

TIL.

    SHELL=/usr/bin/python
    .ONESHELL:

    all:
      @from plumbum.cmd import ls
      print(ls["-a"]())

It totally works... Mwoooo ha ha ha haaaa!



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: