Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/singpolyma/mv
A portable POSIX-compliant implementation of the mv command
https://github.com/singpolyma/mv
Last synced: about 1 month ago
JSON representation
A portable POSIX-compliant implementation of the mv command
- Host: GitHub
- URL: https://github.com/singpolyma/mv
- Owner: singpolyma
- License: isc
- Created: 2009-04-02T20:36:32.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2012-11-06T16:32:48.000Z (about 12 years ago)
- Last Synced: 2024-10-15T11:34:34.158Z (3 months ago)
- Language: C
- Homepage:
- Size: 113 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
A POSIXLY-compliant mv command.
This code will compile on any C89 system.
On such systems, it requires an exact path to the destination, and not just
a destination directory. Also, it will not be able to tell if a destination
exists.On a POSIX system (with the __unix__ macro defined) the above limitations
go away.On a Windows system (WinNT only, Win2K+, tested on WinXP)
(with the _WIN32 macro defined) the above limitations go away.
Also, if a file is currently open when the rename is attempted, it will be
set to complete the move after reboot, a message to this effect will be
printed, and the exit code will be 110.