48c48
< "$FreeBSD: head/bin/mv/mv.c 50471 1999-08-27 23:15:48Z peter $";
---
> "$FreeBSD: head/bin/mv/mv.c 50544 1999-08-29 08:21:16Z mharo $";
62a63
> #include <sysexits.h>
67c68
< int fflg, iflg;
---
> int fflg, iflg, vflg;
85c86
< while ((ch = getopt(argc, argv, "fi")) != -1)
---
> while ((ch = getopt(argc, argv, "fiv")) != -1)
94a96,98
> case 'v':
> vflg = 1;
> break;
191c195,197
< if (!rename(from, to))
---
> if (!rename(from, to)) {
> if (vflg)
> printf("%s -> %s\n", from, to);
192a199
> }
301a309,310
> if (vflg)
> printf("%s -> %s\n", from, to);
312c321
< execl(_PATH_CP, "mv", "-PRp", from, to, NULL);
---
> execl(_PATH_CP, "mv", vflg ? "-PRpv" : "-PRp", from, to, NULL);
352a362
>
354,356c364,366
< "usage: mv [-f | -i] source target",
< " mv [-f | -i] source ... directory");
< exit(1);
---
> "usage: mv [-f | -i] [-v] source target",
> " mv [-f | -i] [-v] source ... directory");
> exit(EX_USAGE);
< "$FreeBSD: head/bin/mv/mv.c 50471 1999-08-27 23:15:48Z peter $";
---
> "$FreeBSD: head/bin/mv/mv.c 50544 1999-08-29 08:21:16Z mharo $";
62a63
> #include <sysexits.h>
67c68
< int fflg, iflg;
---
> int fflg, iflg, vflg;
85c86
< while ((ch = getopt(argc, argv, "fi")) != -1)
---
> while ((ch = getopt(argc, argv, "fiv")) != -1)
94a96,98
> case 'v':
> vflg = 1;
> break;
191c195,197
< if (!rename(from, to))
---
> if (!rename(from, to)) {
> if (vflg)
> printf("%s -> %s\n", from, to);
192a199
> }
301a309,310
> if (vflg)
> printf("%s -> %s\n", from, to);
312c321
< execl(_PATH_CP, "mv", "-PRp", from, to, NULL);
---
> execl(_PATH_CP, "mv", vflg ? "-PRpv" : "-PRp", from, to, NULL);
352a362
>
354,356c364,366
< "usage: mv [-f | -i] source target",
< " mv [-f | -i] source ... directory");
< exit(1);
---
> "usage: mv [-f | -i] [-v] source target",
> " mv [-f | -i] [-v] source ... directory");
> exit(EX_USAGE);