Project

General

Profile

Bug #13150

head -v doesn't work with a single file

Added by Robert Mustacchi about 1 month ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

While working on #6782 I wrote a test suite for head. As a part of this I found that the original work done for adding support for head -v didn't properly check the single file case. We should fix this and make sure that if -v is specified we print the file even if there is only one, as that's the point of the option.


Related issues

Related to illumos gate - Bug #3682: /usr/bin/head should implement -c -q and -vResolved2013-04-03

Actions

History

#1

Updated by Robert Mustacchi about 1 month ago

  • Description updated (diff)
#2

Updated by Robert Mustacchi about 1 month ago

  • Related to Bug #3682: /usr/bin/head should implement -c -q and -v added
#3

Updated by Electric Monk about 1 month ago

  • Gerrit CR set to 922
#4

Updated by Robert Mustacchi about 1 month ago

This was tested along with #6782 and dedicated tests were added to the head(1) test suite for this.

#5

Updated by Electric Monk about 1 month ago

  • Status changed from New to Closed
  • % Done changed from 80 to 100

git commit a9e414682948591ec63d5ab2cd11ba55603b59fa

commit  a9e414682948591ec63d5ab2cd11ba55603b59fa
Author: Robert Mustacchi <rm@fingolfin.org>
Date:   2020-09-23T04:28:51.000Z

    6782 head can't handle embedded nul characters
    13150 head -v doesn't work with a single file
    Reviewed by: Andy Fiddaman <andy@omniosce.org>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF