Public bug reported:

Using bash redirection with sponge does not work as expected. For
example, this will make test_file empty:

sed 's/^/prefix/' test_file | sponge > test_file

Instead, one should do this instead:

sed 's/^/prefix/' test_file | sponge test_file

I feel the man page should be updated to include this warning.

** Affects: moreutils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: documentation

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/879077

Title:
  sponge's man page should include a warning on how not to use it

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/moreutils/+bug/879077/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to