You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a difference between the bash cp -r behavior and shx cp -r when trying to copy a directory into itself:
Create a directory ./dist with a single file in it (e.g., "test.txt") and run:
(in bash) cp -ur "./dist" "./dist/prod"
(with npm) "shx cp -ur "./dist" "./dist/prod""
Test 1. will result in a message saying "cp: cannot copy a directory, './dist/', into itself, './dist/prod'" but test 2. will result in a nested directory structure with a large amount of layers, each ./dist/prod subdirectory will contain another "/prod" subdirectory recursively.
Using shx version "0.3.4"
The text was updated successfully, but these errors were encountered:
There's a difference between the bash cp -r behavior and shx cp -r when trying to copy a directory into itself:
Create a directory ./dist with a single file in it (e.g., "test.txt") and run:
Test 1. will result in a message saying "cp: cannot copy a directory, './dist/', into itself, './dist/prod'" but test 2. will result in a nested directory structure with a large amount of layers, each ./dist/prod subdirectory will contain another "/prod" subdirectory recursively.
Using shx version "0.3.4"
The text was updated successfully, but these errors were encountered: