Bug 221056 - dd_rhelp: "tail +N" deprecated
Summary: dd_rhelp: "tail +N" deprecated
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dd_rescue
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Andreas Thienemann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-12-31 17:03 UTC by Jason Farrell
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-03-07 11:23:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
dd_rhelp patch (4.29 KB, patch)
2006-12-31 17:03 UTC, Jason Farrell
no flags Details | Diff

Description Jason Farrell 2006-12-31 17:03:57 UTC
Description of problem:
The dd_rhelp helper script for dd_rescue uses the deprecated "tail +2" form;
needs to be "tail -n +2"

Version-Release number of selected component (if applicable):
dd_rescue-1.12-4.fc6

How reproducible:
For recent versions of GNU coreutils

Steps to Reproduce:
1. dd if=/dev/zero of=badimg bs=1k count=1000k
2. dd_rhelp badimg badimg.rescued
3. Ctrl-C or Ctrl-\ and goto 2.
  
Actual results:
The script appears to still work, but with the following errors sprinkled
throughout:
/usr/bin/tail: cannot open `+2' for reading: No such file or directory
/usr/bin/tail: cannot open `+2' for reading: No such file or directory

Expected results:
No complaints from the tail util.

Additional info:
http://blogs.sun.com/gerrys/entry/tail

Comment 1 Jason Farrell 2006-12-31 17:03:57 UTC
Created attachment 144595 [details]
dd_rhelp patch

Comment 2 Andreas Thienemann 2007-03-07 11:23:51 UTC
Thanks for the patch, a new package has been built.


Note You need to log in before you can comment on or make changes to this bug.