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
    $




-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to