45c45
< __FBSDID("$FreeBSD: head/bin/mv/mv.c 226961 2011-10-31 08:59:17Z ed $");
---
> __FBSDID("$FreeBSD: head/bin/mv/mv.c 239951 2012-08-31 14:35:01Z jhb $");
71c71
< static int fflg, iflg, nflg, vflg;
---
> static int fflg, hflg, iflg, nflg, vflg;
90c90
< while ((ch = getopt(argc, argv, "finv")) != -1)
---
> while ((ch = getopt(argc, argv, "fhinv")) != -1)
91a92,94
> case 'h':
> hflg = 1;
> break;
125a129,139
> /*
> * If -h was specified, treat the target as a symlink instead of
> * directory.
> */
> if (hflg) {
> if (argc > 2)
> usage();
> if (lstat(argv[1], &sb) == 0 && S_ISLNK(sb.st_mode))
> exit(do_move(argv[0], argv[1]));
> }
>
486c500
< "usage: mv [-f | -i | -n] [-v] source target",
---
> "usage: mv [-f | -i | -n] [-hv] source target",
< __FBSDID("$FreeBSD: head/bin/mv/mv.c 226961 2011-10-31 08:59:17Z ed $");
---
> __FBSDID("$FreeBSD: head/bin/mv/mv.c 239951 2012-08-31 14:35:01Z jhb $");
71c71
< static int fflg, iflg, nflg, vflg;
---
> static int fflg, hflg, iflg, nflg, vflg;
90c90
< while ((ch = getopt(argc, argv, "finv")) != -1)
---
> while ((ch = getopt(argc, argv, "fhinv")) != -1)
91a92,94
> case 'h':
> hflg = 1;
> break;
125a129,139
> /*
> * If -h was specified, treat the target as a symlink instead of
> * directory.
> */
> if (hflg) {
> if (argc > 2)
> usage();
> if (lstat(argv[1], &sb) == 0 && S_ISLNK(sb.st_mode))
> exit(do_move(argv[0], argv[1]));
> }
>
486c500
< "usage: mv [-f | -i | -n] [-v] source target",
---
> "usage: mv [-f | -i | -n] [-hv] source target",