aboutsummaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-01-24 07:48:56 -0800
committerElliott Hughes <enh@google.com>2020-01-24 07:49:21 -0800
commit58c5012daeb6809a0550c278dd0b18ac54f2cd7b (patch)
tree75d24dc05262711b9ccfeefd4118c400bd3640f3 /android
parentc719d664df2eaf5d56c6dfd0e01934f7aa45bc11 (diff)
parent51442ce32e99c28fbbd74305e6a8b8e5686293c0 (diff)
downloadtoybox-58c5012daeb6809a0550c278dd0b18ac54f2cd7b.tar.gz
Merge remote-tracking branch 'toybox/master' into HEAD
Change-Id: If13202387d7b275b24cda29775f9162a267cc486
Diffstat (limited to 'android')
-rw-r--r--android/device/generated/flags.h56
-rw-r--r--android/device/generated/help.h6
-rw-r--r--android/device/generated/newtoys.h4
-rw-r--r--android/linux/generated/flags.h56
-rw-r--r--android/linux/generated/help.h6
-rw-r--r--android/linux/generated/newtoys.h4
-rw-r--r--android/mac/generated/flags.h56
-rw-r--r--android/mac/generated/help.h6
-rw-r--r--android/mac/generated/newtoys.h4
9 files changed, 105 insertions, 93 deletions
diff --git a/android/device/generated/flags.h b/android/device/generated/flags.h
index 27109e6d..2daa010f 100644
--- a/android/device/generated/flags.h
+++ b/android/device/generated/flags.h
@@ -345,12 +345,13 @@
#undef FOR_count
#endif
-// cp <2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fi[-HLPd][-ni] <2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fi[-HLPd][-ni]
+// cp <2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fiT[-HLPd][-ni] <2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fiT[-HLPd][-ni]
#undef OPTSTR_cp
-#define OPTSTR_cp "<2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fi[-HLPd][-ni]"
+#define OPTSTR_cp "<2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fiT[-HLPd][-ni]"
#ifdef CLEANUP_cp
#undef CLEANUP_cp
#undef FOR_cp
+#undef FLAG_T
#undef FLAG_i
#undef FLAG_f
#undef FLAG_F
@@ -1916,12 +1917,13 @@
#undef FLAG_q
#endif
-// mv <2vnF(remove-destination)fi[-ni] <2vnF(remove-destination)fi[-ni]
+// mv <2vnF(remove-destination)fiT[-ni] <2vnF(remove-destination)fiT[-ni]
#undef OPTSTR_mv
-#define OPTSTR_mv "<2vnF(remove-destination)fi[-ni]"
+#define OPTSTR_mv "<2vnF(remove-destination)fiT[-ni]"
#ifdef CLEANUP_mv
#undef CLEANUP_mv
#undef FOR_mv
+#undef FLAG_T
#undef FLAG_i
#undef FLAG_f
#undef FLAG_F
@@ -3699,23 +3701,24 @@
#ifndef TT
#define TT this.cp
#endif
-#define FLAG_i (1<<0)
-#define FLAG_f (1<<1)
-#define FLAG_F (1<<2)
-#define FLAG_n (1<<3)
-#define FLAG_v (1<<4)
-#define FLAG_l (1<<5)
-#define FLAG_s (1<<6)
-#define FLAG_a (1<<7)
-#define FLAG_d (1<<8)
-#define FLAG_r (1<<9)
-#define FLAG_p (1<<10)
-#define FLAG_P (1<<11)
-#define FLAG_L (1<<12)
-#define FLAG_H (1<<13)
-#define FLAG_R (1<<14)
-#define FLAG_D (1<<15)
-#define FLAG_preserve (1<<16)
+#define FLAG_T (1<<0)
+#define FLAG_i (1<<1)
+#define FLAG_f (1<<2)
+#define FLAG_F (1<<3)
+#define FLAG_n (1<<4)
+#define FLAG_v (1<<5)
+#define FLAG_l (1<<6)
+#define FLAG_s (1<<7)
+#define FLAG_a (1<<8)
+#define FLAG_d (1<<9)
+#define FLAG_r (1<<10)
+#define FLAG_p (1<<11)
+#define FLAG_P (1<<12)
+#define FLAG_L (1<<13)
+#define FLAG_H (1<<14)
+#define FLAG_R (1<<15)
+#define FLAG_D (1<<16)
+#define FLAG_preserve (1<<17)
#endif
#ifdef FOR_cpio
@@ -5026,11 +5029,12 @@
#ifndef TT
#define TT this.mv
#endif
-#define FLAG_i (1<<0)
-#define FLAG_f (1<<1)
-#define FLAG_F (1<<2)
-#define FLAG_n (1<<3)
-#define FLAG_v (1<<4)
+#define FLAG_T (1<<0)
+#define FLAG_i (1<<1)
+#define FLAG_f (1<<2)
+#define FLAG_F (1<<3)
+#define FLAG_n (1<<4)
+#define FLAG_v (1<<5)
#endif
#ifdef FOR_nbd_client
diff --git a/android/device/generated/help.h b/android/device/generated/help.h
index 245f6982..6ca897ac 100644
--- a/android/device/generated/help.h
+++ b/android/device/generated/help.h
@@ -578,11 +578,11 @@
#define HELP_install "usage: install [-dDpsv] [-o USER] [-g GROUP] [-m MODE] [SOURCE...] DEST\n\nCopy files and set attributes.\n\n-d Act like mkdir -p\n-D Create leading directories for DEST\n-g Make copy belong to GROUP\n-m Set permissions to MODE\n-o Make copy belong to USER\n-p Preserve timestamps\n-s Call \"strip -p\"\n-v Verbose"
-#define HELP_mv "usage: mv [-fivn] SOURCE... DEST\n\n-f Force copy by deleting destination file\n-i Interactive, prompt before overwriting existing DEST\n-v Verbose\n-n No clobber (don't overwrite DEST)"
+#define HELP_mv "usage: mv [-finTv] SOURCE... DEST\n\n-f Force copy by deleting destination file\n-i Interactive, prompt before overwriting existing DEST\n-n No clobber (don't overwrite DEST)\n-T DEST always treated as file, max 2 arguments\n-v Verbose"
-#define HELP_cp_preserve "--preserve takes either a comma separated list of attributes, or the first\nletter(s) of:\n\n mode - permissions (ignore umask for rwx, copy suid and sticky bit)\n ownership - user and group\n timestamps - file creation, modification, and access times.\n context - security context\n xattr - extended attributes\n all - all of the above\n\nusage: cp [--preserve=motcxa] [-adlnrsvfipRHLP] SOURCE... DEST\n\nCopy files from SOURCE to DEST. If more than one SOURCE, DEST must\nbe a directory.\n-v Verbose\n-s Symlink instead of copy\n-r Synonym for -R\n-n No clobber (don't overwrite DEST)\n-l Hard link instead of copy\n-d Don't dereference symlinks\n-a Same as -dpr\n-P Do not follow symlinks [default]\n-L Follow all symlinks\n-H Follow symlinks listed on command line\n-R Recurse into subdirectories (DEST must be a directory)\n-p Preserve timestamps, ownership, and mode\n-i Interactive, prompt before overwriting existing DEST\n-F Delete any existing destination file first (--remove-destination)\n-f Delete destination files we can't write to\n-D Create leading dirs under DEST (--parents)"
+#define HELP_cp_preserve "--preserve takes either a comma separated list of attributes, or the first\nletter(s) of:\n\n mode - permissions (ignore umask for rwx, copy suid and sticky bit)\n ownership - user and group\n timestamps - file creation, modification, and access times.\n context - security context\n xattr - extended attributes\n all - all of the above\n\nusage: cp [--preserve=motcxa] [-adfHiLlnPpRrsTv] SOURCE... DEST\n\nCopy files from SOURCE to DEST. If more than one SOURCE, DEST must\nbe a directory.\n-v Verbose\n-T DEST always treated as file, max 2 arguments\n-s Symlink instead of copy\n-r Synonym for -R\n-R Recurse into subdirectories (DEST must be a directory)\n-p Preserve timestamps, ownership, and mode\n-P Do not follow symlinks [default]\n-n No clobber (don't overwrite DEST)\n-l Hard link instead of copy\n-L Follow all symlinks\n-i Interactive, prompt before overwriting existing DEST\n-H Follow symlinks listed on command line\n-f Delete destination files we can't write to\n-F Delete any existing destination file first (--remove-destination)\n-d Don't dereference symlinks\n-D Create leading dirs under DEST (--parents)\n-a Same as -dpr"
-#define HELP_cp "usage: cp [--preserve=motcxa] [-adlnrsvfipRHLP] SOURCE... DEST\n\nCopy files from SOURCE to DEST. If more than one SOURCE, DEST must\nbe a directory.\n-v Verbose\n-s Symlink instead of copy\n-r Synonym for -R\n-n No clobber (don't overwrite DEST)\n-l Hard link instead of copy\n-d Don't dereference symlinks\n-a Same as -dpr\n-P Do not follow symlinks [default]\n-L Follow all symlinks\n-H Follow symlinks listed on command line\n-R Recurse into subdirectories (DEST must be a directory)\n-p Preserve timestamps, ownership, and mode\n-i Interactive, prompt before overwriting existing DEST\n-F Delete any existing destination file first (--remove-destination)\n-f Delete destination files we can't write to\n-D Create leading dirs under DEST (--parents)\n--preserve takes either a comma separated list of attributes, or the first\nletter(s) of:\n\n mode - permissions (ignore umask for rwx, copy suid and sticky bit)\n ownership - user and group\n timestamps - file creation, modification, and access times.\n context - security context\n xattr - extended attributes\n all - all of the above"
+#define HELP_cp "usage: cp [--preserve=motcxa] [-adfHiLlnPpRrsTv] SOURCE... DEST\n\nCopy files from SOURCE to DEST. If more than one SOURCE, DEST must\nbe a directory.\n-v Verbose\n-T DEST always treated as file, max 2 arguments\n-s Symlink instead of copy\n-r Synonym for -R\n-R Recurse into subdirectories (DEST must be a directory)\n-p Preserve timestamps, ownership, and mode\n-P Do not follow symlinks [default]\n-n No clobber (don't overwrite DEST)\n-l Hard link instead of copy\n-L Follow all symlinks\n-i Interactive, prompt before overwriting existing DEST\n-H Follow symlinks listed on command line\n-f Delete destination files we can't write to\n-F Delete any existing destination file first (--remove-destination)\n-d Don't dereference symlinks\n-D Create leading dirs under DEST (--parents)\n-a Same as -dpr\n--preserve takes either a comma separated list of attributes, or the first\nletter(s) of:\n\n mode - permissions (ignore umask for rwx, copy suid and sticky bit)\n ownership - user and group\n timestamps - file creation, modification, and access times.\n context - security context\n xattr - extended attributes\n all - all of the above"
#define HELP_comm "usage: comm [-123] FILE1 FILE2\n\nRead FILE1 and FILE2, which should be ordered, and produce three text\ncolumns as output: lines only in FILE1; lines only in FILE2; and lines\nin both files. Filename \"-\" is a synonym for stdin.\n\n-1 Suppress the output column of lines unique to FILE1\n-2 Suppress the output column of lines unique to FILE2\n-3 Suppress the output column of lines duplicated in FILE1 and FILE2"
diff --git a/android/device/generated/newtoys.h b/android/device/generated/newtoys.h
index 79561512..852e071d 100644
--- a/android/device/generated/newtoys.h
+++ b/android/device/generated/newtoys.h
@@ -38,7 +38,7 @@ USE_CLEAR(NEWTOY(clear, NULL, TOYFLAG_USR|TOYFLAG_BIN))
USE_CMP(NEWTOY(cmp, "<1>2ls(silent)(quiet)[!ls]", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_ARGFAIL(2)))
USE_COMM(NEWTOY(comm, "<2>2321", TOYFLAG_USR|TOYFLAG_BIN))
USE_COUNT(NEWTOY(count, NULL, TOYFLAG_USR|TOYFLAG_BIN))
-USE_CP(NEWTOY(cp, "<2"USE_CP_PRESERVE("(preserve):;")"D(parents)RHLPprdaslvnF(remove-destination)fi[-HLPd][-ni]", TOYFLAG_BIN))
+USE_CP(NEWTOY(cp, "<2"USE_CP_PRESERVE("(preserve):;")"D(parents)RHLPprdaslvnF(remove-destination)fiT[-HLPd][-ni]", TOYFLAG_BIN))
USE_CPIO(NEWTOY(cpio, "(no-preserve-owner)(trailer)mduH:p:|i|t|F:v(verbose)o|[!pio][!pot][!pF]", TOYFLAG_BIN))
USE_CRC32(NEWTOY(crc32, 0, TOYFLAG_BIN))
USE_CROND(NEWTOY(crond, "fbSl#<0=8d#<0L:c:[-bf][-LS][-ld]", TOYFLAG_USR|TOYFLAG_SBIN|TOYFLAG_NEEDROOT))
@@ -171,7 +171,7 @@ USE_MODPROBE(NEWTOY(modprobe, "alrqvsDbd*", TOYFLAG_SBIN))
USE_MORE(NEWTOY(more, 0, TOYFLAG_USR|TOYFLAG_BIN))
USE_MOUNT(NEWTOY(mount, "?O:afnrvwt:o*[-rw]", TOYFLAG_BIN|TOYFLAG_STAYROOT))
USE_MOUNTPOINT(NEWTOY(mountpoint, "<1qdx[-dx]", TOYFLAG_BIN))
-USE_MV(NEWTOY(mv, "<2vnF(remove-destination)fi[-ni]", TOYFLAG_BIN))
+USE_MV(NEWTOY(mv, "<2vnF(remove-destination)fiT[-ni]", TOYFLAG_BIN))
USE_NBD_CLIENT(OLDTOY(nbd-client, nbd_client, TOYFLAG_USR|TOYFLAG_BIN))
USE_NBD_CLIENT(NEWTOY(nbd_client, "<3>3ns", 0))
USE_NETCAT(OLDTOY(nc, netcat, TOYFLAG_USR|TOYFLAG_BIN))
diff --git a/android/linux/generated/flags.h b/android/linux/generated/flags.h
index f397ea6f..cb22b4eb 100644
--- a/android/linux/generated/flags.h
+++ b/android/linux/generated/flags.h
@@ -345,12 +345,13 @@
#undef FOR_count
#endif
-// cp <2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fi[-HLPd][-ni] <2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fi[-HLPd][-ni]
+// cp <2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fiT[-HLPd][-ni] <2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fiT[-HLPd][-ni]
#undef OPTSTR_cp
-#define OPTSTR_cp "<2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fi[-HLPd][-ni]"
+#define OPTSTR_cp "<2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fiT[-HLPd][-ni]"
#ifdef CLEANUP_cp
#undef CLEANUP_cp
#undef FOR_cp
+#undef FLAG_T
#undef FLAG_i
#undef FLAG_f
#undef FLAG_F
@@ -1916,12 +1917,13 @@
#undef FLAG_q
#endif
-// mv <2vnF(remove-destination)fi[-ni] <2vnF(remove-destination)fi[-ni]
+// mv <2vnF(remove-destination)fiT[-ni] <2vnF(remove-destination)fiT[-ni]
#undef OPTSTR_mv
-#define OPTSTR_mv "<2vnF(remove-destination)fi[-ni]"
+#define OPTSTR_mv "<2vnF(remove-destination)fiT[-ni]"
#ifdef CLEANUP_mv
#undef CLEANUP_mv
#undef FOR_mv
+#undef FLAG_T
#undef FLAG_i
#undef FLAG_f
#undef FLAG_F
@@ -3699,23 +3701,24 @@
#ifndef TT
#define TT this.cp
#endif
-#define FLAG_i (1<<0)
-#define FLAG_f (1<<1)
-#define FLAG_F (1<<2)
-#define FLAG_n (1<<3)
-#define FLAG_v (1<<4)
-#define FLAG_l (1<<5)
-#define FLAG_s (1<<6)
-#define FLAG_a (1<<7)
-#define FLAG_d (1<<8)
-#define FLAG_r (1<<9)
-#define FLAG_p (1<<10)
-#define FLAG_P (1<<11)
-#define FLAG_L (1<<12)
-#define FLAG_H (1<<13)
-#define FLAG_R (1<<14)
-#define FLAG_D (1<<15)
-#define FLAG_preserve (1<<16)
+#define FLAG_T (1<<0)
+#define FLAG_i (1<<1)
+#define FLAG_f (1<<2)
+#define FLAG_F (1<<3)
+#define FLAG_n (1<<4)
+#define FLAG_v (1<<5)
+#define FLAG_l (1<<6)
+#define FLAG_s (1<<7)
+#define FLAG_a (1<<8)
+#define FLAG_d (1<<9)
+#define FLAG_r (1<<10)
+#define FLAG_p (1<<11)
+#define FLAG_P (1<<12)
+#define FLAG_L (1<<13)
+#define FLAG_H (1<<14)
+#define FLAG_R (1<<15)
+#define FLAG_D (1<<16)
+#define FLAG_preserve (1<<17)
#endif
#ifdef FOR_cpio
@@ -5026,11 +5029,12 @@
#ifndef TT
#define TT this.mv
#endif
-#define FLAG_i (1<<0)
-#define FLAG_f (1<<1)
-#define FLAG_F (1<<2)
-#define FLAG_n (1<<3)
-#define FLAG_v (1<<4)
+#define FLAG_T (1<<0)
+#define FLAG_i (1<<1)
+#define FLAG_f (1<<2)
+#define FLAG_F (1<<3)
+#define FLAG_n (1<<4)
+#define FLAG_v (1<<5)
#endif
#ifdef FOR_nbd_client
diff --git a/android/linux/generated/help.h b/android/linux/generated/help.h
index 0b0e927b..fcde6851 100644
--- a/android/linux/generated/help.h
+++ b/android/linux/generated/help.h
@@ -584,11 +584,11 @@
#define HELP_install "usage: install [-dDpsv] [-o USER] [-g GROUP] [-m MODE] [SOURCE...] DEST\n\nCopy files and set attributes.\n\n-d Act like mkdir -p\n-D Create leading directories for DEST\n-g Make copy belong to GROUP\n-m Set permissions to MODE\n-o Make copy belong to USER\n-p Preserve timestamps\n-s Call \"strip -p\"\n-v Verbose"
-#define HELP_mv "usage: mv [-fivn] SOURCE... DEST\n\n-f Force copy by deleting destination file\n-i Interactive, prompt before overwriting existing DEST\n-v Verbose\n-n No clobber (don't overwrite DEST)"
+#define HELP_mv "usage: mv [-finTv] SOURCE... DEST\n\n-f Force copy by deleting destination file\n-i Interactive, prompt before overwriting existing DEST\n-n No clobber (don't overwrite DEST)\n-T DEST always treated as file, max 2 arguments\n-v Verbose"
-#define HELP_cp_preserve "--preserve takes either a comma separated list of attributes, or the first\nletter(s) of:\n\n mode - permissions (ignore umask for rwx, copy suid and sticky bit)\n ownership - user and group\n timestamps - file creation, modification, and access times.\n context - security context\n xattr - extended attributes\n all - all of the above\n\nusage: cp [--preserve=motcxa] [-adlnrsvfipRHLP] SOURCE... DEST\n\nCopy files from SOURCE to DEST. If more than one SOURCE, DEST must\nbe a directory.\n-v Verbose\n-s Symlink instead of copy\n-r Synonym for -R\n-n No clobber (don't overwrite DEST)\n-l Hard link instead of copy\n-d Don't dereference symlinks\n-a Same as -dpr\n-P Do not follow symlinks [default]\n-L Follow all symlinks\n-H Follow symlinks listed on command line\n-R Recurse into subdirectories (DEST must be a directory)\n-p Preserve timestamps, ownership, and mode\n-i Interactive, prompt before overwriting existing DEST\n-F Delete any existing destination file first (--remove-destination)\n-f Delete destination files we can't write to\n-D Create leading dirs under DEST (--parents)"
+#define HELP_cp_preserve "--preserve takes either a comma separated list of attributes, or the first\nletter(s) of:\n\n mode - permissions (ignore umask for rwx, copy suid and sticky bit)\n ownership - user and group\n timestamps - file creation, modification, and access times.\n context - security context\n xattr - extended attributes\n all - all of the above\n\nusage: cp [--preserve=motcxa] [-adfHiLlnPpRrsTv] SOURCE... DEST\n\nCopy files from SOURCE to DEST. If more than one SOURCE, DEST must\nbe a directory.\n-v Verbose\n-T DEST always treated as file, max 2 arguments\n-s Symlink instead of copy\n-r Synonym for -R\n-R Recurse into subdirectories (DEST must be a directory)\n-p Preserve timestamps, ownership, and mode\n-P Do not follow symlinks [default]\n-n No clobber (don't overwrite DEST)\n-l Hard link instead of copy\n-L Follow all symlinks\n-i Interactive, prompt before overwriting existing DEST\n-H Follow symlinks listed on command line\n-f Delete destination files we can't write to\n-F Delete any existing destination file first (--remove-destination)\n-d Don't dereference symlinks\n-D Create leading dirs under DEST (--parents)\n-a Same as -dpr"
-#define HELP_cp "usage: cp [--preserve=motcxa] [-adlnrsvfipRHLP] SOURCE... DEST\n\nCopy files from SOURCE to DEST. If more than one SOURCE, DEST must\nbe a directory.\n-v Verbose\n-s Symlink instead of copy\n-r Synonym for -R\n-n No clobber (don't overwrite DEST)\n-l Hard link instead of copy\n-d Don't dereference symlinks\n-a Same as -dpr\n-P Do not follow symlinks [default]\n-L Follow all symlinks\n-H Follow symlinks listed on command line\n-R Recurse into subdirectories (DEST must be a directory)\n-p Preserve timestamps, ownership, and mode\n-i Interactive, prompt before overwriting existing DEST\n-F Delete any existing destination file first (--remove-destination)\n-f Delete destination files we can't write to\n-D Create leading dirs under DEST (--parents)\n--preserve takes either a comma separated list of attributes, or the first\nletter(s) of:\n\n mode - permissions (ignore umask for rwx, copy suid and sticky bit)\n ownership - user and group\n timestamps - file creation, modification, and access times.\n context - security context\n xattr - extended attributes\n all - all of the above"
+#define HELP_cp "usage: cp [--preserve=motcxa] [-adfHiLlnPpRrsTv] SOURCE... DEST\n\nCopy files from SOURCE to DEST. If more than one SOURCE, DEST must\nbe a directory.\n-v Verbose\n-T DEST always treated as file, max 2 arguments\n-s Symlink instead of copy\n-r Synonym for -R\n-R Recurse into subdirectories (DEST must be a directory)\n-p Preserve timestamps, ownership, and mode\n-P Do not follow symlinks [default]\n-n No clobber (don't overwrite DEST)\n-l Hard link instead of copy\n-L Follow all symlinks\n-i Interactive, prompt before overwriting existing DEST\n-H Follow symlinks listed on command line\n-f Delete destination files we can't write to\n-F Delete any existing destination file first (--remove-destination)\n-d Don't dereference symlinks\n-D Create leading dirs under DEST (--parents)\n-a Same as -dpr\n--preserve takes either a comma separated list of attributes, or the first\nletter(s) of:\n\n mode - permissions (ignore umask for rwx, copy suid and sticky bit)\n ownership - user and group\n timestamps - file creation, modification, and access times.\n context - security context\n xattr - extended attributes\n all - all of the above"
#define HELP_comm "usage: comm [-123] FILE1 FILE2\n\nRead FILE1 and FILE2, which should be ordered, and produce three text\ncolumns as output: lines only in FILE1; lines only in FILE2; and lines\nin both files. Filename \"-\" is a synonym for stdin.\n\n-1 Suppress the output column of lines unique to FILE1\n-2 Suppress the output column of lines unique to FILE2\n-3 Suppress the output column of lines duplicated in FILE1 and FILE2"
diff --git a/android/linux/generated/newtoys.h b/android/linux/generated/newtoys.h
index 79561512..852e071d 100644
--- a/android/linux/generated/newtoys.h
+++ b/android/linux/generated/newtoys.h
@@ -38,7 +38,7 @@ USE_CLEAR(NEWTOY(clear, NULL, TOYFLAG_USR|TOYFLAG_BIN))
USE_CMP(NEWTOY(cmp, "<1>2ls(silent)(quiet)[!ls]", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_ARGFAIL(2)))
USE_COMM(NEWTOY(comm, "<2>2321", TOYFLAG_USR|TOYFLAG_BIN))
USE_COUNT(NEWTOY(count, NULL, TOYFLAG_USR|TOYFLAG_BIN))
-USE_CP(NEWTOY(cp, "<2"USE_CP_PRESERVE("(preserve):;")"D(parents)RHLPprdaslvnF(remove-destination)fi[-HLPd][-ni]", TOYFLAG_BIN))
+USE_CP(NEWTOY(cp, "<2"USE_CP_PRESERVE("(preserve):;")"D(parents)RHLPprdaslvnF(remove-destination)fiT[-HLPd][-ni]", TOYFLAG_BIN))
USE_CPIO(NEWTOY(cpio, "(no-preserve-owner)(trailer)mduH:p:|i|t|F:v(verbose)o|[!pio][!pot][!pF]", TOYFLAG_BIN))
USE_CRC32(NEWTOY(crc32, 0, TOYFLAG_BIN))
USE_CROND(NEWTOY(crond, "fbSl#<0=8d#<0L:c:[-bf][-LS][-ld]", TOYFLAG_USR|TOYFLAG_SBIN|TOYFLAG_NEEDROOT))
@@ -171,7 +171,7 @@ USE_MODPROBE(NEWTOY(modprobe, "alrqvsDbd*", TOYFLAG_SBIN))
USE_MORE(NEWTOY(more, 0, TOYFLAG_USR|TOYFLAG_BIN))
USE_MOUNT(NEWTOY(mount, "?O:afnrvwt:o*[-rw]", TOYFLAG_BIN|TOYFLAG_STAYROOT))
USE_MOUNTPOINT(NEWTOY(mountpoint, "<1qdx[-dx]", TOYFLAG_BIN))
-USE_MV(NEWTOY(mv, "<2vnF(remove-destination)fi[-ni]", TOYFLAG_BIN))
+USE_MV(NEWTOY(mv, "<2vnF(remove-destination)fiT[-ni]", TOYFLAG_BIN))
USE_NBD_CLIENT(OLDTOY(nbd-client, nbd_client, TOYFLAG_USR|TOYFLAG_BIN))
USE_NBD_CLIENT(NEWTOY(nbd_client, "<3>3ns", 0))
USE_NETCAT(OLDTOY(nc, netcat, TOYFLAG_USR|TOYFLAG_BIN))
diff --git a/android/mac/generated/flags.h b/android/mac/generated/flags.h
index 765d2223..ac8cc368 100644
--- a/android/mac/generated/flags.h
+++ b/android/mac/generated/flags.h
@@ -345,12 +345,13 @@
#undef FOR_count
#endif
-// cp <2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fi[-HLPd][-ni] <2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fi[-HLPd][-ni]
+// cp <2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fiT[-HLPd][-ni] <2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fiT[-HLPd][-ni]
#undef OPTSTR_cp
-#define OPTSTR_cp "<2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fi[-HLPd][-ni]"
+#define OPTSTR_cp "<2(preserve):;D(parents)RHLPprdaslvnF(remove-destination)fiT[-HLPd][-ni]"
#ifdef CLEANUP_cp
#undef CLEANUP_cp
#undef FOR_cp
+#undef FLAG_T
#undef FLAG_i
#undef FLAG_f
#undef FLAG_F
@@ -1916,12 +1917,13 @@
#undef FLAG_q
#endif
-// mv <2vnF(remove-destination)fi[-ni] <2vnF(remove-destination)fi[-ni]
+// mv <2vnF(remove-destination)fiT[-ni] <2vnF(remove-destination)fiT[-ni]
#undef OPTSTR_mv
-#define OPTSTR_mv "<2vnF(remove-destination)fi[-ni]"
+#define OPTSTR_mv "<2vnF(remove-destination)fiT[-ni]"
#ifdef CLEANUP_mv
#undef CLEANUP_mv
#undef FOR_mv
+#undef FLAG_T
#undef FLAG_i
#undef FLAG_f
#undef FLAG_F
@@ -3699,23 +3701,24 @@
#ifndef TT
#define TT this.cp
#endif
-#define FLAG_i (1<<0)
-#define FLAG_f (1<<1)
-#define FLAG_F (1<<2)
-#define FLAG_n (1<<3)
-#define FLAG_v (1<<4)
-#define FLAG_l (1<<5)
-#define FLAG_s (1<<6)
-#define FLAG_a (1<<7)
-#define FLAG_d (1<<8)
-#define FLAG_r (1<<9)
-#define FLAG_p (1<<10)
-#define FLAG_P (1<<11)
-#define FLAG_L (1<<12)
-#define FLAG_H (1<<13)
-#define FLAG_R (1<<14)
-#define FLAG_D (1<<15)
-#define FLAG_preserve (1<<16)
+#define FLAG_T (1<<0)
+#define FLAG_i (1<<1)
+#define FLAG_f (1<<2)
+#define FLAG_F (1<<3)
+#define FLAG_n (1<<4)
+#define FLAG_v (1<<5)
+#define FLAG_l (1<<6)
+#define FLAG_s (1<<7)
+#define FLAG_a (1<<8)
+#define FLAG_d (1<<9)
+#define FLAG_r (1<<10)
+#define FLAG_p (1<<11)
+#define FLAG_P (1<<12)
+#define FLAG_L (1<<13)
+#define FLAG_H (1<<14)
+#define FLAG_R (1<<15)
+#define FLAG_D (1<<16)
+#define FLAG_preserve (1<<17)
#endif
#ifdef FOR_cpio
@@ -5026,11 +5029,12 @@
#ifndef TT
#define TT this.mv
#endif
-#define FLAG_i (1<<0)
-#define FLAG_f (1<<1)
-#define FLAG_F (1<<2)
-#define FLAG_n (1<<3)
-#define FLAG_v (1<<4)
+#define FLAG_T (1<<0)
+#define FLAG_i (1<<1)
+#define FLAG_f (1<<2)
+#define FLAG_F (1<<3)
+#define FLAG_n (1<<4)
+#define FLAG_v (1<<5)
#endif
#ifdef FOR_nbd_client
diff --git a/android/mac/generated/help.h b/android/mac/generated/help.h
index 0b0e927b..fcde6851 100644
--- a/android/mac/generated/help.h
+++ b/android/mac/generated/help.h
@@ -584,11 +584,11 @@
#define HELP_install "usage: install [-dDpsv] [-o USER] [-g GROUP] [-m MODE] [SOURCE...] DEST\n\nCopy files and set attributes.\n\n-d Act like mkdir -p\n-D Create leading directories for DEST\n-g Make copy belong to GROUP\n-m Set permissions to MODE\n-o Make copy belong to USER\n-p Preserve timestamps\n-s Call \"strip -p\"\n-v Verbose"
-#define HELP_mv "usage: mv [-fivn] SOURCE... DEST\n\n-f Force copy by deleting destination file\n-i Interactive, prompt before overwriting existing DEST\n-v Verbose\n-n No clobber (don't overwrite DEST)"
+#define HELP_mv "usage: mv [-finTv] SOURCE... DEST\n\n-f Force copy by deleting destination file\n-i Interactive, prompt before overwriting existing DEST\n-n No clobber (don't overwrite DEST)\n-T DEST always treated as file, max 2 arguments\n-v Verbose"
-#define HELP_cp_preserve "--preserve takes either a comma separated list of attributes, or the first\nletter(s) of:\n\n mode - permissions (ignore umask for rwx, copy suid and sticky bit)\n ownership - user and group\n timestamps - file creation, modification, and access times.\n context - security context\n xattr - extended attributes\n all - all of the above\n\nusage: cp [--preserve=motcxa] [-adlnrsvfipRHLP] SOURCE... DEST\n\nCopy files from SOURCE to DEST. If more than one SOURCE, DEST must\nbe a directory.\n-v Verbose\n-s Symlink instead of copy\n-r Synonym for -R\n-n No clobber (don't overwrite DEST)\n-l Hard link instead of copy\n-d Don't dereference symlinks\n-a Same as -dpr\n-P Do not follow symlinks [default]\n-L Follow all symlinks\n-H Follow symlinks listed on command line\n-R Recurse into subdirectories (DEST must be a directory)\n-p Preserve timestamps, ownership, and mode\n-i Interactive, prompt before overwriting existing DEST\n-F Delete any existing destination file first (--remove-destination)\n-f Delete destination files we can't write to\n-D Create leading dirs under DEST (--parents)"
+#define HELP_cp_preserve "--preserve takes either a comma separated list of attributes, or the first\nletter(s) of:\n\n mode - permissions (ignore umask for rwx, copy suid and sticky bit)\n ownership - user and group\n timestamps - file creation, modification, and access times.\n context - security context\n xattr - extended attributes\n all - all of the above\n\nusage: cp [--preserve=motcxa] [-adfHiLlnPpRrsTv] SOURCE... DEST\n\nCopy files from SOURCE to DEST. If more than one SOURCE, DEST must\nbe a directory.\n-v Verbose\n-T DEST always treated as file, max 2 arguments\n-s Symlink instead of copy\n-r Synonym for -R\n-R Recurse into subdirectories (DEST must be a directory)\n-p Preserve timestamps, ownership, and mode\n-P Do not follow symlinks [default]\n-n No clobber (don't overwrite DEST)\n-l Hard link instead of copy\n-L Follow all symlinks\n-i Interactive, prompt before overwriting existing DEST\n-H Follow symlinks listed on command line\n-f Delete destination files we can't write to\n-F Delete any existing destination file first (--remove-destination)\n-d Don't dereference symlinks\n-D Create leading dirs under DEST (--parents)\n-a Same as -dpr"
-#define HELP_cp "usage: cp [--preserve=motcxa] [-adlnrsvfipRHLP] SOURCE... DEST\n\nCopy files from SOURCE to DEST. If more than one SOURCE, DEST must\nbe a directory.\n-v Verbose\n-s Symlink instead of copy\n-r Synonym for -R\n-n No clobber (don't overwrite DEST)\n-l Hard link instead of copy\n-d Don't dereference symlinks\n-a Same as -dpr\n-P Do not follow symlinks [default]\n-L Follow all symlinks\n-H Follow symlinks listed on command line\n-R Recurse into subdirectories (DEST must be a directory)\n-p Preserve timestamps, ownership, and mode\n-i Interactive, prompt before overwriting existing DEST\n-F Delete any existing destination file first (--remove-destination)\n-f Delete destination files we can't write to\n-D Create leading dirs under DEST (--parents)\n--preserve takes either a comma separated list of attributes, or the first\nletter(s) of:\n\n mode - permissions (ignore umask for rwx, copy suid and sticky bit)\n ownership - user and group\n timestamps - file creation, modification, and access times.\n context - security context\n xattr - extended attributes\n all - all of the above"
+#define HELP_cp "usage: cp [--preserve=motcxa] [-adfHiLlnPpRrsTv] SOURCE... DEST\n\nCopy files from SOURCE to DEST. If more than one SOURCE, DEST must\nbe a directory.\n-v Verbose\n-T DEST always treated as file, max 2 arguments\n-s Symlink instead of copy\n-r Synonym for -R\n-R Recurse into subdirectories (DEST must be a directory)\n-p Preserve timestamps, ownership, and mode\n-P Do not follow symlinks [default]\n-n No clobber (don't overwrite DEST)\n-l Hard link instead of copy\n-L Follow all symlinks\n-i Interactive, prompt before overwriting existing DEST\n-H Follow symlinks listed on command line\n-f Delete destination files we can't write to\n-F Delete any existing destination file first (--remove-destination)\n-d Don't dereference symlinks\n-D Create leading dirs under DEST (--parents)\n-a Same as -dpr\n--preserve takes either a comma separated list of attributes, or the first\nletter(s) of:\n\n mode - permissions (ignore umask for rwx, copy suid and sticky bit)\n ownership - user and group\n timestamps - file creation, modification, and access times.\n context - security context\n xattr - extended attributes\n all - all of the above"
#define HELP_comm "usage: comm [-123] FILE1 FILE2\n\nRead FILE1 and FILE2, which should be ordered, and produce three text\ncolumns as output: lines only in FILE1; lines only in FILE2; and lines\nin both files. Filename \"-\" is a synonym for stdin.\n\n-1 Suppress the output column of lines unique to FILE1\n-2 Suppress the output column of lines unique to FILE2\n-3 Suppress the output column of lines duplicated in FILE1 and FILE2"
diff --git a/android/mac/generated/newtoys.h b/android/mac/generated/newtoys.h
index 79561512..852e071d 100644
--- a/android/mac/generated/newtoys.h
+++ b/android/mac/generated/newtoys.h
@@ -38,7 +38,7 @@ USE_CLEAR(NEWTOY(clear, NULL, TOYFLAG_USR|TOYFLAG_BIN))
USE_CMP(NEWTOY(cmp, "<1>2ls(silent)(quiet)[!ls]", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_ARGFAIL(2)))
USE_COMM(NEWTOY(comm, "<2>2321", TOYFLAG_USR|TOYFLAG_BIN))
USE_COUNT(NEWTOY(count, NULL, TOYFLAG_USR|TOYFLAG_BIN))
-USE_CP(NEWTOY(cp, "<2"USE_CP_PRESERVE("(preserve):;")"D(parents)RHLPprdaslvnF(remove-destination)fi[-HLPd][-ni]", TOYFLAG_BIN))
+USE_CP(NEWTOY(cp, "<2"USE_CP_PRESERVE("(preserve):;")"D(parents)RHLPprdaslvnF(remove-destination)fiT[-HLPd][-ni]", TOYFLAG_BIN))
USE_CPIO(NEWTOY(cpio, "(no-preserve-owner)(trailer)mduH:p:|i|t|F:v(verbose)o|[!pio][!pot][!pF]", TOYFLAG_BIN))
USE_CRC32(NEWTOY(crc32, 0, TOYFLAG_BIN))
USE_CROND(NEWTOY(crond, "fbSl#<0=8d#<0L:c:[-bf][-LS][-ld]", TOYFLAG_USR|TOYFLAG_SBIN|TOYFLAG_NEEDROOT))
@@ -171,7 +171,7 @@ USE_MODPROBE(NEWTOY(modprobe, "alrqvsDbd*", TOYFLAG_SBIN))
USE_MORE(NEWTOY(more, 0, TOYFLAG_USR|TOYFLAG_BIN))
USE_MOUNT(NEWTOY(mount, "?O:afnrvwt:o*[-rw]", TOYFLAG_BIN|TOYFLAG_STAYROOT))
USE_MOUNTPOINT(NEWTOY(mountpoint, "<1qdx[-dx]", TOYFLAG_BIN))
-USE_MV(NEWTOY(mv, "<2vnF(remove-destination)fi[-ni]", TOYFLAG_BIN))
+USE_MV(NEWTOY(mv, "<2vnF(remove-destination)fiT[-ni]", TOYFLAG_BIN))
USE_NBD_CLIENT(OLDTOY(nbd-client, nbd_client, TOYFLAG_USR|TOYFLAG_BIN))
USE_NBD_CLIENT(NEWTOY(nbd_client, "<3>3ns", 0))
USE_NETCAT(OLDTOY(nc, netcat, TOYFLAG_USR|TOYFLAG_BIN))