diff options
author | Mark Johnston <markj@FreeBSD.org> | 2013-05-12 16:29:09 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2013-05-12 16:29:09 +0000 |
commit | d02e5a206dab6481cd1a2fa12560849dd178c6d8 (patch) | |
tree | afa9df872cd6c0deda7af73f55af9e5914f2d8ec /cddl/contrib | |
parent | 09e6105ff4b8003d2b3af27308a3b1746c9586c5 (diff) | |
download | src-d02e5a206dab6481cd1a2fa12560849dd178c6d8.tar.gz src-d02e5a206dab6481cd1a2fa12560849dd178c6d8.zip |
head -n doesn't take negative arguments on FreeBSD, so instead use sed '$d'
to remove the last line of a file.
Notes
Notes:
svn path=/head/; revision=250575
Diffstat (limited to 'cddl/contrib')
-rw-r--r-- | cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pragma/tst.temporal.ksh | 4 | ||||
-rw-r--r-- | cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pragma/tst.temporal2.ksh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pragma/tst.temporal.ksh b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pragma/tst.temporal.ksh index 9a0aed0678cf..f09c71fa59c7 100644 --- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pragma/tst.temporal.ksh +++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pragma/tst.temporal.ksh @@ -73,8 +73,8 @@ if [ "$status" -ne 0 ]; then fi # dtrace outputs a blank line at the end, which will sort to the beginning, -# so use head to remove the blank line. -head -n -1 $file > $file.2 +# so use sed to remove the blank line. +sed '$d' $file > $file.2 sort -n $file.2 | diff $file.2 - status=$? diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pragma/tst.temporal2.ksh b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pragma/tst.temporal2.ksh index 4e8d592d81d6..05b078a7d216 100644 --- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pragma/tst.temporal2.ksh +++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pragma/tst.temporal2.ksh @@ -89,8 +89,8 @@ if [ "$status" -ne 0 ]; then fi # dtrace outputs a blank line at the end, which will sort to the beginning, -# so use grep to remove the blank line. -head -n -1 $file > $file.2 +# so use sed to remove the blank line. +sed '$d' $file > $file.2 sort -n $file.2 | diff $file.2 - status=$? |