Breaking Change on Copy Command

Open
#245 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, node.js
Domain
cli

Research direction

Start by reproducing shx cp C:\myDirectory\*.scss C:\otherDirectory on version 0.4.0, then compare it with 0.3.4 to identify the change in wildcard handling. Inspect the shx cp command path; done means SCSS files copy successfully on Windows and the regression is covered by an appropriate test.

Written by the indexing model from the issue text.

Description

Windows

Hello

I upgraded shx from version 0.3.4 to 0.4.0. I executed my shx command after the upgrade and an error occured with the following command:

shx cp C:\myDirectory\*.scss C:\otherDirectory

This is the exception:
[shx cp "C:\myDirectory\*.scss" "C:\otherDirectory"](cp: no such file or directory: C:/myDirectory/*.scss)

I think the problem in the command is *.scss. I only want to copy the scss Files in the myDirectory folder.

How can I do that in the current verion? This command worked in the 0.3.4 version.

Regards
Fabio

Dominant language
JavaScript
Stars
1.9k
Forks
52
Avg merge
3d 2h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from shelljs/shx

All issues in shelljs/shx

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.