Skip to content

sed can't replace files in a different directory #165

Closed
@crhistianramirez

Description

@crhistianramirez

shx version: 0.3.2
npm version: 6.9.0
node version: 10.16.0

I'm trying to replace some text for a file in a child folder /docs.

I run this command:

shx sed -i 's/globals.html/index.html/g' docs/index.html

And get the error: sed: no files given

I've confirmed this works with the vanilla unix sed command. Steps to reproduce:

  1. git clone https://github.com/crhistianramirez/shx-bug-repro-sed.git
  2. cd shx-bug-repro-sed
  3. npm install
  4. npm run bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions