aboutsummaryrefslogtreecommitdiff
path: root/bin/mv
Commit message (Collapse)AuthorAgeFilesLines
* Use PATH_MAX in preference to MAXPATHLEN.Warner Losh2001-05-291-3/+4
| | | | Notes: svn path=/head/; revision=77409
* Silence WARNS=2 and BDECFLAGS on alpha and i386, except for mode_tKris Kennaway2001-05-201-7/+8
| | | | | | | | | warnings. MFC after: 1 week Notes: svn path=/head/; revision=76878
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-2/+2
| | | | Notes: svn path=/head/; revision=68935
* Don't emit a warning message if fchflags() returns EOPNOTSUPPSADA Kenji2000-07-201-1/+10
| | | | | | | | Requested by: FUJISHIMA Satsuki <k5@cheerful.com> Obtained from: OpenBSD Notes: svn path=/head/; revision=63680
* To make inherit file flags when mv(1) moves file between directoriesSADA Kenji2000-07-151-0/+2
| | | | | | | | | | | | on different file systems. PR: bin/12375 Submitted by: Takashi SHIRAI <shirai@nintendo.co.jp> No response by: steve No problem with: building 5-current world Notes: svn path=/head/; revision=63225
* Use lstat(2) instead of stat(2) when deciding if we should fastcopyDavid Malone2000-07-111-1/+1
| | | | | | | | | | a file. This fixes moving symlinks across partitions. PR: 17847 Reviewed by: bde Notes: svn path=/head/; revision=62963
* Removed bogus dependancy on libutil.Josef Karthauser2000-01-011-3/+0
| | | | | | | Noticed by: bde Notes: svn path=/head/; revision=55301
* mention that -v is non-standardMichael Haro1999-09-041-0/+4
| | | | | | | Reviewed-by: obrien Notes: svn path=/head/; revision=50871
* add verbose flagMichael Haro1999-08-292-7/+23
| | | | Notes: svn path=/head/; revision=50544
* $Id$ -> $FreeBSD$Peter Wemm1999-08-274-4/+4
| | | | Notes: svn path=/head/; revision=50471
* Various spelling/formatting changes.Kris Kennaway1999-05-081-2/+2
| | | | | | | Submitted by: Philippe Charnier <charnier@xp11.frmug.org> Notes: svn path=/head/; revision=46684
* Calls one or more of malloc(), warn(), err(), syslog(), execlp() orDag-Erling Smørgrav1998-10-131-2/+2
| | | | | | | | | | | | | | execvp() in the child branch of a vfork(). Changed to use fork() instead. Some of these (mv, find, apply, xargs) might benefit greatly from being rewritten to use vfork() properly. PR: Loosely related to bin/8252 Approved by: jkh and bde Notes: svn path=/head/; revision=40301
* Fixed printf format errors.Bruce Evans1998-06-281-3/+3
| | | | Notes: svn path=/head/; revision=37245
* Make sure we don't overflow the path buffer. Exit if we do.Warner Losh1998-06-091-2/+4
| | | | | | | Obtained from or inspired by: A similar change in OpenBSD by theo Notes: svn path=/head/; revision=36785
* Don't append a '/' to the destination directory if thereSteve Price1998-05-251-3/+5
| | | | | | | | | is already one there. PR: 3025 Notes: svn path=/head/; revision=36383
* Correct use of .Nm. Add rcsid.Philippe Charnier1998-05-152-13/+14
| | | | Notes: svn path=/head/; revision=36049
* Merge from OpenBSD:Eivind Eklund1997-12-101-2/+16
| | | | | | | | | | | | > Error out if someone tries to mv a mount point. Old behavior was to > move all files contained in the mounted filesystem to the dest. dir > which could be quite nasty. Personally, I think rename(2) should > return EPERM or EINVAL instead of EXDEV. Obtained from: OpenBSD mv.c rev 1.6 by Todd Miller <millert@openbsd.org> Notes: svn path=/head/; revision=31664
* Synchronize usage() and man page.Wolfgang Helbig1997-10-262-5/+5
| | | | | | | Pointed out by bde. Notes: svn path=/head/; revision=30727
* mv(1) is too silent if used with the option -i. It shouldWolfram Schneider1997-10-041-6/+9
| | | | | | | | print which input mv(1) expect (y/n) and print a warning if the file was not overwritten. Notes: svn path=/head/; revision=30106
* Endless loop.Wolfram Schneider1997-09-281-5/+6
| | | | | | | | | | $ touch from to $ echo -n loop | mv -i from to overwrite to? ^C Notes: svn path=/head/; revision=29933
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-281-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24348
* Make mv more robust. A race has been fixed, as well as an extra warningGuido van Rooij1997-03-081-10/+28
| | | | | | | | added when sbits are cleared. Fixes PR 1351 and 1377 (I hope). Notes: svn path=/head/; revision=23525
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-224-4/+4
| | | | Notes: svn path=/head/; revision=22988
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-144-4/+4
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* -Wall cleaning.Steve Price1996-12-141-3/+3
| | | | Notes: svn path=/head/; revision=20420
* [HISTORY] command appeared in Version 1 AT&T UNIXWolfram Schneider1996-08-291-1/+6
| | | | | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41 Notes: svn path=/head/; revision=17891
* delete unused label endargWolfram Schneider1996-03-011-9/+8
| | | | | | | | correct indent of last new code fix usage string, option -f before option -i (alphabetic order) Notes: svn path=/head/; revision=14305
* option -f and -i are exclusive (Posix)Wolfram Schneider1996-02-202-9/+29
| | | | | | | | | respond `Y' is equal to `y' update usage string prompt only if source exist Notes: svn path=/head/; revision=14166
* -- is implemented in getopt(3)Paul Traina1996-02-191-5/+2
| | | | | | | -? is an unnecessary case statement and not useful Notes: svn path=/head/; revision=14156
* delete my last commitWolfram Schneider1996-02-192-28/+8
| | | | | | | Submitted by: pst, ache Notes: svn path=/head/; revision=14154
* option -f and -i are exclusiveWolfram Schneider1996-02-182-10/+30
| | | | | | | | | | | | | all flag variables initialized with zero respond `Y' is equal to `y' update usage string prompt only if source exist ignore -i option if file descriptor stdin not refers to a valid terminal type device Notes: svn path=/head/; revision=14144
* Handle trailing slashes in source filenames correctly. E.g., rewriteBruce Evans1995-10-071-5/+11
| | | | | | | | | | | | `mv foo/ ../..' to `mv foo/ ../../foo/', not to `mv foo/ ../../'. The latter caused a panic. Before the trailing slash changes in the kernel, the trailing slashes caused the rename() for this mv to fail earlier, so there was no panic in 2.0. Fixes part of PR 760. Notes: svn path=/head/; revision=11298
* The command to `move' across file system boundaries is actuallyJoerg Wunsch1995-08-151-2/+2
| | | | | | | | | | | cp -PRp source_file destination Closes PR # bin/689: mv(1) manpage Submitted by: wosch@cs.tu-berlin.de (Wolfram Schneider) Notes: svn path=/head/; revision=10068
* Added $Id$David Greenman1994-09-244-0/+5
| | | | Notes: svn path=/head/; revision=3044
* BSD 4.4 Lite bin SourcesRodney W. Grimes1994-05-264-0/+474
Notes: svn path=/head/; revision=1556