Data loss. shell.cp() Content of file is erased when trying to copy it to the folder it already belongs to #1092
Labels
bash compat
Compatibility issues with bash or POSIX behavior
fix
Bug/defect, or a fix for such a problem
medium priority
Node version (or tell us if you're using electron or some other framework): v10.19.0
ShellJS version (the most recent version/Github branch you see the bug on): 0.8.3
Operating system: Linux (Ubuntu 20.04)
Description of the bug:
Regression from issue #678
Copying a directory to its same location causes the content of the files to be wiped out.
Example ShellJS command to reproduce the error:
Here's mi bash history with a repro and some info
The text was updated successfully, but these errors were encountered: