[Bug 1004700] Re: xxd doesn't truncate output file
Nick Dyer
1004700 at bugs.launchpad.net
Fri May 25 21:50:09 UTC 2012
OK - this looks like this is documented behaviour, if a bit unexpected:
-r | -revert
reverse operation: convert (or patch) hexdump into binary. If not writing to stdout, xxd writes into its output file without truncating it. Use the combination -r -p to read plain hexadecimal dumps without line number information and without a particular column layout. Additional Whitespace and line-breaks are allowed anywhere.
** Visibility changed to: Private
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to vim in Ubuntu.
https://bugs.launchpad.net/bugs/1004700
Title:
xxd doesn't truncate output file
Status in “vim” package in Ubuntu:
New
Bug description:
Steps to reproduce:
$ echo 6162636465 > 1.txt
$ xxd -r -p 1.txt out.bin
$ xxd out.bin
0000000: 6162 6364 65 abcde
$ echo 414243 > 2.txt
$ xxd -r -p 2.txt out.bin
$ xxd out.bin
0000000: 4142 4364 65 ABCde
I would expect out.bin to be just "ABC" at this point.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: vim 2:7.3.154+hg~74503f6ee649-2ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-19.33-generic 3.0.27
Uname: Linux 3.0.0-19-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Fri May 25 21:55:29 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: vim
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/1004700/+subscriptions
More information about the foundations-bugs
mailing list