News for hackers. Stuff that matters.
Re:A surprise with how ' ' handles its program argument in p... by tombert on Thursday November 20, 2025 @12:46AM (#45989363)
They do symlink /bin/sh to be fair, and that's very often good enough for a lot of scripts. That's what I usually do if I don't need anything bash offers.
Re:A surprise with how ' ' handles its program argument in p... by rmunn on Thursday November 20, 2025 @12:59AM (#45989431)
Thing is, a few years ago when Debian changed its default sh from bash to ... either ash or dash, I forget which, I got into the habit of always writing `#!/bin/bash` at the top of my scripts, in case I didn't realize that something I was using was a bashism not found in classic /bin/sh. So if I used Nix (I don't, since for my particular use cases the juice isn't worth the squeeze), I would get seriously messed up by that.
Re:A surprise with how ' ' handles its program argument in p... by chuckadams on Thursday November 20, 2025 @10:17AM (#45993476)
/bin/sh is part of the POSIX standard -- even NixOS puts a symlink there.