[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug: tail (GNU coreutils) 5.97
From: |
barnettmike |
Subject: |
Bug: tail (GNU coreutils) 5.97 |
Date: |
Sat, 3 Oct 2009 08:59:40 +0000 (UTC) |
Hello!
This particular default version of tail cannot handle the argument,
+line-number.
This shortcoming does not permit portability. The work-around is to do more
math than is necessary.
Examples:
Old version of tail.
address@hidden bin]$ tail --version
tail (coreutils) 5.2.1
Written by Paul Rubin, David MacKenzie, Ian Lance Taylor, and Jim Meyering.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
address@hidden bin]$
address@hidden bin]$ wc -l updateSSPage.sh
64 updateSSPage.sh
address@hidden bin]$
address@hidden bin]$ tail +60 updateSSPage.sh
echo Did not find $TRGF
/bin/mail -s "Error running file `uname -n`:$TWD/$0." address@hidden
exit
fi
address@hidden bin]$
NEW version of tail.
address@hidden bin]$ tail --version
tail (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Paul Rubin, David MacKenzie, Ian Lance Taylor, and Jim Meyering.
address@hidden bin]$
address@hidden bin]$ wc -l updateSSPage.sh
64 updateSSPage.sh
address@hidden bin]$
address@hidden bin]$ tail +60 updateSSPage.sh
tail: cannot open `+60' for reading: No such file or directory
==> updateSSPage.sh <==
# Clean up the old index.html_* files.
find $TWD -name 'index.html_*' -mtime +14 -exec rm -f {} \;
else
echo Did not find $TRGF
/bin/mail -s "Error running file `uname -n`:$TWD/$0." address@hidden
exit
fi
address@hidden bin]$
Keeping you posted.
Mike Barnett
- Bug: tail (GNU coreutils) 5.97,
barnettmike <=