Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A portable POSIX-compliant implementation of the mv command
C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
COPYING
Makefile
README
getopt.c
getopt.h
mv.c

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.
Something went wrong with that request. Please try again.