dash: Redirection operator <> should not truncate file
Bug #598054 reported by
Andreas Bühmann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dash (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: dash
The redirection operator <> shall open a file for reading and writing. It should not truncate the file as it does in dash:
dash -c 'echo foo > tmp; cat 0<> tmp'
Output: nothing; "tmp" has size 0 afterwards
Expected output: contents of file "tmp"; "tmp" still has size 4
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: dash 0.5.5.1-3ubuntu2
ProcVersionSign
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelMo
Architecture: i386
Date: Thu Jun 24 12:56:38 2010
ProcEnviron:
PATH=(custom, user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: dash
description: | updated |
To post a comment you must log in.
I'm able to confirm the described behavior, and I agree that the file should not be truncated in using read/write redirection.