``` $ sed -i 's/a/b/g' pkgs/by-name/aa/aaa/package.nix sed: <script argument 1>:1:2: error: extra characters at the end of the p command ``` Even though `sed --help` indicates the order of args to be `Usage: sed [OPTION]... [script] [file]...` Tested on ec6c98d67ef9fea05e04e7f12d32b96a1d2ebf2a Workaround seems to be explicitly specify `-e`: ``` $ sed -i -e 's/a/b/g' pkgs/by-name/aa/aaa/package.nix ``` But this seems fragile?
Activity
Switch `-i` from BSD-style to GNU-style argument parsing
Switch `-i` from BSD-style to GNU-style argument parsing