[Bug 230620] "install -d" issue

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 230620] "install -d" issue

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230620

            Bug ID: 230620
           Summary: "install -d" issue
           Product: Base System
           Version: 11.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: [hidden email]
          Reporter: [hidden email]
             Flags: mfc-stable11?

install(1) manual page tells that the install utility can create missing parent
directories as required if -d options is specified. This mode seems to work
half-way only, as it really creates needed directories but fails to copy
specified files there:

$ cd /tmp
$ touch file1 file2
$ install -d dir file1 file2
install: file1 exists but is not a directory
$ ls -lR dir
total 0

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 230620] "install -d" issue

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230620

Ian Lepore <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #1 from Ian Lepore <[hidden email]> ---
Install -d ONLY creates directories.  You are not allowed to specify both
directories and filenames on the command line when using -d.  This is
documented by having a different synopsis line in the manpage for install -d.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 230620] "install -d" issue

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230620

--- Comment #2 from Eugene Grosbein <[hidden email]> ---
(In reply to Ian Lepore from comment #1)

Thank you for explanation. This is not obvious from the synopsis. Perhaps, it
should be made more clear by replacing "directory ..." with "directory1 ...
directoryN" just like previous lines already have "file1 ... file N directory".

Also, one can consider this as PR feature request then: teach install(1) to
create missing directories while copying files. It could use new "-F" flag for
that to force such creation.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 230620] "install -d" issue

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230620

Rodney W. Grimes <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|[hidden email]          |[hidden email]

--- Comment #3 from Rodney W. Grimes <[hidden email]> ---
Please do not put bugs on stable@, current@, hackers@, etc
Placing this bug back on bugs@ to be triaged properly to a technical list

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[hidden email]"