[Toybox] cp --help mangled.
enh
enh at google.com
Sat Jan 9 12:51:59 PST 2016
the "--preserve" help is split in two, with all the other options
appearing between (marked here by *** which doesn't actually appear in
the help output):
$ adb shell cp --help
usage: cp [--preserve=motcxa] [-adlnrsv] [-fipRHLP] SOURCE... DEST
Copy files from SOURCE to DEST. If more than one SOURCE, DEST must
be a directory.
--preserve takes either a comma separated list of attributes, or the first
***
-F delete any existing destination file first (--remove-destination)
-H Follow symlinks listed on command line
-L Follow all symlinks
-P Do not follow symlinks [default]
-R recurse into subdirectories (DEST must be a directory)
-a same as -dpr
-d don't dereference symlinks
-f delete destination files we can't write to
-i interactive, prompt before overwriting existing DEST
-l hard link instead of copy
-n no clobber (don't overwrite DEST)
-p preserve timestamps, ownership, and mode
-r synonym for -R
-s symlink instead of copy
-v verbose
***
letter(s) of:
mode - permissions (ignore umask for rwx, copy suid and sticky bit)
ownership - user and group
timestamps - file creation, modification, and access times.
context - security context
xattr - extended attributes
all - all of the above
--
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.
More information about the Toybox
mailing list