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

Doesn't work for me:

  $ make -v | head -n1
  GNU Make 4.3

  $ printf 'SHELL := /bin/false\nall:\n\tls\n' > Makefile

  $ make
  ls
  make: *** [Makefile:3: all] Error 1


I completely forgot that the GNU Make source code has a check to see if the shell is bourne-compatible (it just strcmp's with sh, bash, and a hard coded list), and then only applies that optimization if it is. I deleted that code in my Landlock Make fork so I could use shells like /bin/false and still get the optimization. So sorry about that! Give it a try with Landlock Make https://github.com/jart/landlock-make and https://justine.lol/make/




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: