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 parent thisacctforreal 7 years ago
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