Ticket #481 (closed defect: notsugar)
mv command in Terminal (and Sugar console) removes files when move unsuccessful
| Reported by: | smiller | Owned by: | smiller |
|---|---|---|---|
| Priority: | Unspecified by Maintainer | Milestone: | Unspecified by Release Team |
| Component: | Terminal | Version: | Unspecified |
| Severity: | Unspecified | Keywords: | |
| Cc: | bernie | Distribution/OS: | Unspecified |
| Bug Status: | Needinfo |
Description
When using the 'mv' to move files in the Sugar Terminal (or console), mv deletes the files being moved even if the transfer is unsuccessful. This was discovered when a USB drive was mounted read-only, and the mv command was used to transfer files. Every file was listed as unsuccessful due to lack of permissions (as expected). After re-mounting the drive with as 'rw', the files that were "moved" were gone. The 'mv' command removed them, even after completing unsuccessfully.
'mv' should be fixed to only delete the files after a successful move.
Change History
Note: See
TracTickets for help on using
tickets.
