Skip to content

Misreads paths as commands #165

Closed

Description

@eclairevoyant
$ 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 ec6c98d

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions