Comment

Comment by thisacctforreal

How does the GNU-ism work at a shell level?

In your first example $0 is "sed", $1 is "-i", $2 is "...", no? What signifigance does the -i"" have in bash apart from 'concat -i to ""'?

The BSD syntax is plain, $1 is the option "-i", $2 is the value for that option: "", $3 is "...".

Edit: off by one

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton