Your message dated Sat, 12 Nov 2011 04:12:34 -0800 (PST)
with message-id <[email protected]>
and subject line sed -i -e '$w/dev/stdout' -e '$d' testFile
has caused the Debian Bug report #648344,
regarding sed -i '$p;$d' doesn't work
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
648344: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648344
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sed
Version: 4.2.1-9
Severity: normal

  I expected sed -i '$p;$d' to work.  It doesn't.
sed -n '$p;$p' does work.
  Tp reproduce:

    $ printf "1\n2\n" > testFile
    $ sed -n '$p;$p' testFile
    2
    2
    $ sed -i '$p;$d' testFile
    $ printf "$?\n"
    0
    $ cat testFile
    1
    2
    $ sed -i '$d' testFile
    $ printf "$?\n"
    0
    $ cat testFile
    1
    $




--- End Message ---
--- Begin Message ---
Package: sed
Version: 4.2.1-9

  As can be read in the discussion of the bug, http://bugs.debian.org/648344:
sed -i '$p;$d' works as designed.  The intention of the bug submitter could
have been run by sed -i -e '$w/dev/stdout' -e '$d' testFile

  


--- End Message ---

Reply via email to