summaryrefslogtreecommitdiff
path: root/bin/mv
AgeCommit message (Collapse)Author
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2008-10-21various doc fixes related to how mv handles symlinksJason McIntyre
and file system traversal; this is work from Ingo Schwarze, tweaked a little by myself, and we borrowed half a sentence from the netbsd man page too; ok sobrado
2008-05-26get the argument name right; from Jacek MasiulaniecJason McIntyre
2007-07-27Separate code a little, making it clearer. From Gilles ChehadeRay Lai
<root at evilkittens dot org>. Reset blen on malloc failure. Match blen type with st_blksize. OK moritz@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29- consistent STANDARDS blurbJason McIntyre
- note which options are extensions to POSIX discussed w/ deraadt otto millert
2007-02-16Allow moving files starting with a dash acrossMoritz Jodeit
file system boundaries. Noticed by Roland Illig. ok otto@ millert@ jaredy@
2006-08-10- use .ExJason McIntyre
- bump .St - standard EXAMPLES - macro cleanup
2006-08-10better explanation of second synopsis form; add a caveat alsoJason McIntyre
started by freebsd pr #101330, from peter gildea diff from otto and myself
2005-06-30Set tv_usec sensibly when calling utimes() instead of just zeroing it.Todd C. Miller
We have nsec file times so we may as well use them...
2005-04-08Sync with recent realpath(3) changes: on failure, don't use the secondJared Yanovich
argument "resolved", since it is undefined. ok and help millert, otto
2004-12-13Use warnx() instead of warn() in four places where we know errno is zero.Otto Moerbeek
ok henning@ fgsch@ pedro@ millert@
2003-07-29spacingTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-03-21Fix some typos in comments; Patrick LatifiTodd C. Miller
2003-03-13Use the return value of strcpy() to detect ENAMETOOLONG instead ofTodd C. Miller
doing an extra strlen; deraadt@ OK
2003-03-13lots of sprintf -> snprintf and strcpy -> strlcpy; checked by teduTheo de Raadt
2003-03-12more .LiTheo de Raadt
2002-07-04ansiTheo de Raadt
2002-02-18change -pr to -PRp (ok mpech@, millert@)Mark Grimes
Closes PR2258
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-11Initial patch.Mike Pechkin
When you give command examples in a manual page prefix them with $ command or # command deraadt@ ok
2002-01-25Stat source path at the top of do_move() and return an error ifTodd C. Miller
this fails. Previously, "mv nonexistent file_with_no_write_perms" would prompt whether or not to overwrite the file w/o write perms even though 'nonexistent' would fail to lstat() later on.
2002-01-16missed some registers, kill'em!Mike Pechkin
millert@ ok
2001-12-21Initial patch for a new mdoc issue.Mike Pechkin
Powered by @mantoya: o) kill extra line in the end of file; o) kill extra space in the end of line; o) replace blank lines with .Pp; millert@ ok
2001-12-01KNFTheo de Raadt
2001-09-06o) __progname aria;Mike Pechkin
millert@ ok.
2001-08-13Document how to remove or rename a file that is a getopt(3) flagHeikki Korpela
to mv(1) or rm(1) by preceding it with --. From ho@: Also give a sample of the ./-f way that is more portable ok millert@, ho@
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
2001-01-08Fix a bug in previous commit; we need a separate stat buffer forTodd C. Miller
the "from" file due to changing the order of stat calls.
2001-01-06Fix 3 cases related to symbolic links when moving between filesystes:Todd C. Miller
1) incorrectly refused to move a symlink to a mount point 2) refused to move a symlink to a non-existent file 3) copied the contents of a symlink instead of the link itself. Closes PR 1368; james@oaktree.co.uk
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-10-18Add some rudimentary EXAMPLES sections and standardize the way we displayAaron Campbell
existing EXAMPLES sections.
2000-03-21Add HISTORY sections; from FreeBSD. Information originally obtained fromAaron Campbell
"A Quarter Centry of UNIX, Peter H. Salus, Page 41".
2000-03-17Remove hard sentence breaks.Aaron Campbell
1999-12-24Try to preserve file flags in mv (Kamo Hiroyasu <wd@ics.nara-wu.ac.jp>)Angelos D. Keromytis
1999-08-17consistencyAaron Campbell
1999-07-26When using the -i option, check for the existence of the source file beforeAaron Campbell
asking for confirmation, and if it doesn't exist, just complain and exit. This is NetBSD PR/8073; deraadt@ ok.
1999-01-12use pid_tAaron Campbell
1998-12-15always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.netAaron Campbell
1998-11-28start killing redundant .Nm macro arguments (mandoc ``remembers'' the first oneAaron Campbell
it's given)
1998-11-06use .Dq/.Sq macros instead of `` ''s and ` 's (think typesetting and futureAaron Campbell
processing); kill redundant .Pp macros; other misc fixes
1998-09-14First complete sweep of man pages, bin/. Command/function names previouslyAaron Campbell
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS cleanups, other miscellaneous typos.
1998-07-02indentTheo de Raadt
1998-07-02Fix mv b/ a where a is a directory.Constantine Sapuntzakis
1998-05-18MAXPATHLEN not MAXPATHLEN+1, no buf oflow of targdirTheo de Raadt
1997-09-28avoid looping on question; wosch@freebsdTheo de Raadt
1997-09-21$OpenBSD$Theo de Raadt
1997-08-27clean up 'Theo de Raadt