-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
install
: Accept special files like /dev/stdin
#5080
Comments
Found in the wild here: echo 'g keyd' | install -Dm644 /dev/stdin "${pkgdir}/usr/lib/sysusers.d/${pkgname%-git}.conf" |
I checked the source code and |
Wondering if this (moving cp code to |
Checked right now, works correctly. Perhaps the issue should be closed? |
What fixed the issue? 🤔 |
I don't know, but this issue seems to be quite old. Perhaps somebody fixed it and forgot to mark this as complete. |
Issue still persists apparently. The only time when it works is when I use zsh's herestring which works because zsh creates some sort of non-special temporary file I think. Piping to the command still breaks |
Don't hesitate to provide a patch, it should not be hard |
i'll try |
since this also affects |
Fixed in #6965 |
GNU coreutils accepts special files like
/dev/stdin
without any issues, for e.g.:That creates a file called
test
withfoo\n
as its contents, which isn't surprising.However our coreutils fail with the same usage with this error:
This issue doesn't effect
cp
, however it might effect other utils which haven't been tested.The text was updated successfully, but these errors were encountered: