Project

General

Profile

Actions

Bug #13150

closed

head -v doesn't work with a single file

Added by Robert Mustacchi about 3 years ago. Updated about 3 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

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 -vResolvedRobert Mustacchi2013-04-03

Actions
Actions #1

Updated by Robert Mustacchi about 3 years ago

  • Description updated (diff)
Actions #2

Updated by Robert Mustacchi about 3 years ago

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

Updated by Electric Monk about 3 years ago

  • Gerrit CR set to 922
Actions #4

Updated by Robert Mustacchi about 3 years ago

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

Actions #5

Updated by Electric Monk about 3 years 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>

Actions

Also available in: Atom PDF