----- Original Message -----
From: "Peter Volkov" <[email protected]>
To: <[email protected]>
Sent: Saturday, January 23, 2010 10:48 AM
Subject: install sets execution permissions on files
> Hi. I'm unsure if this is a bug but since I failed to find it documented
> anywhere or discussed on this mailing list here is the question:
>
> $ touch foo
> $ install foo bar
>
> install copies foo file to bar but it also _sets execution permissions_
> on bar. `info install` states:
>
> * If two file names are given, `install' copies the first file to the
> second.
>
> and nothing about permissions. So why install sets execution permissions
> on normal files? Should this be fixed on install or will you accept
> patch for documentation?
>
man install say
-m, --mode=MODE
set permission mode (as in chmod), instead of rwxr-xr-x
Gilles