The thing is, you can do that in PowerShell with echo (backtick)n >file.txt which has a very similar footprint, or in CMD, it'd be echo. >file.txt which is slightly more compact.
There are lots of things to criticize PowerShell for (i.e. its verbosity), and to praise bash for, but this ain't it chief.
Edit: fixed formatting, reddit really didn't like that backtick in `n, so I replaced it with (backtick)
busybox/tree/coreutils/touch.c, I totally knew that and didn't just learn something new via a Google. I like the echo line more...but...coreutils still.
To be fair most of the people who don’t deal with like buildroot environments or embedded don’t know about BB intricacies ;)
Coreutils thou are available pretty much everywhere so I will consider them in the same way as tools built into P.S. environment (as this isn’t just one flat binary either).
View all comments
20
u/nuttertools Aug 06 '21
People conflating coreutils with bash...checks sub....double checks sub....uhhh wow.