You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the following command to get a "buffer" for my current clipboard stuff, which i use elsewhere - wl-paste --watch cp /dev/stdin tmp
when i was using gnu cp, with each clipboard copy, the tmp file is rewritten appropriately (old stuff cleaned, new stuff written). with uutils cp, old stuff partially remains. if original stuff was n characters long, and new content is n' (n' < n), then only first n' characters are rewritten, n - n' old characters remain. This seems very much dependent on how wl-paste is generateing output, but GNU cp, and busybox cp seem to handle it.
I know of --remove-destination option, and it works, but the way i am actually finally storing the buffer entries, is checking if the buffer file is modified, if modified, it handles the buffer. If i remove the file, the checker is thrown off.
My uutils package version is 0.0.29 from arch package, also tested 0.0.30, same behaviour.
here is a video demo showing how existence of previous stuff in file
The text was updated successfully, but these errors were encountered:
I use the following command to get a "buffer" for my current clipboard stuff, which i use elsewhere -
wl-paste --watch cp /dev/stdin tmp
when i was using gnu cp, with each clipboard copy, the
tmp
file is rewritten appropriately (old stuff cleaned, new stuff written). with uutils cp, old stuff partially remains. if original stuff wasn
characters long, and new content isn'
(n' < n
), then only firstn'
characters are rewritten,n - n'
old characters remain. This seems very much dependent on how wl-paste is generateing output, but GNU cp, and busybox cp seem to handle it.I know of
--remove-destination
option, and it works, but the way i am actually finally storing the buffer entries, is checking if the buffer file is modified, if modified, it handles the buffer. If i remove the file, the checker is thrown off.My uutils package version is
0.0.29
from arch package, also tested0.0.30
, same behaviour.here is a video demo showing how existence of previous stuff in file
The text was updated successfully, but these errors were encountered: