Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appending using COPY is broken for two input files #78

Open
greybaddin opened this issue Jul 6, 2022 · 1 comment
Open

Appending using COPY is broken for two input files #78

greybaddin opened this issue Jul 6, 2022 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@greybaddin
Copy link

The COPY command supports appending files using the syntax

COPY file1+file2[+[...]] file1

and this does work for three input files (and more I assume) but not for two !

Although it creates the correct output file for more than two input files the output to console is incorrect as the second file is shown as copied not appended.

@PerditionC PerditionC added bug Something isn't working enhancement New feature or request labels Dec 28, 2024
@PerditionC
Copy link
Contributor

PerditionC commented Dec 28, 2024

COPY file1 + file2 +... file1
seems to have some varying semantics depending on shell, but generally it should (current does NOT) work successfully if file1 is first file and destination (should extend and append to existing content as long as enough room for all files, otherwise error with insufficient space message), however, if instead copying to file2 or later, then instead of creating corrupted file (as may be done) it should error as source and dest cannot be same file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants