You are not logged in.
I really have no idea what the install '-D' flag does. I understand the -m flag changes the file (-)mode 644, 755, but I have no idea what the -D does or when to use it. From the man page:
-D create all leading components of DEST except the last, then copy
SOURCE to DEST
Before I get the 'it does exactly what it says it does' could someone please put it in different terms? When and why would I use this?
Last edited by Gen2ly (2009-11-06 23:00:19)
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
install file /path/to/file
vs.
install -D file /path/to/
That's all.
1000
Offline
It creates the directory path that is the prefix of DEST. So:
$ touch stuff
$ install stuff some/where/else
install: cannot create regular file `some/where/else': No such file or directory
$ install -D stuff some/where/else
$ ls -R some
some:
where
some/where:
else
Good ideas do not need lots of lies told about them in order to gain public acceptance.
Offline
Ahhh, looked over a couple PKGBUILDS and missed that. Thanks for the information.
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline