Project

General

Profile

Actions

Feature #11906

closed

Add line drawing characters to ptree(1)

Added by Jason King almost 2 years ago. Updated almost 2 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Commands such as pstree on Linux can display the process tree with line drawing characters. It would be nice to add support for similar output.


Related issues

Related to illumos gate - Bug #12037: ptree zone handling is brokenClosedJason King

Actions
Actions #1

Updated by Jason King almost 2 years ago

To test, I built the new binary and ran it w/ various combination of flags (none, -g, -s, -gs) (using the pid of the shell -- e.g. ptree -g $$) both in the C locale and in the en_US.UTF-8 locale, and compared the output to the unmodified ptree command. The output was identical except for the expected line drawing characters (which looked as expected, both matching the indentation of the text as well as the ASCII or UTF-8 line drawing characters based on the locale).

For the man page changes, those were verified via manual inspection.

Actions #3

Updated by Electric Monk almost 2 years ago

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

git commit 9f62da4d4c37a940c1a7c639e4b9ac1bcb7eb570

commit  9f62da4d4c37a940c1a7c639e4b9ac1bcb7eb570
Author: Jason King <jason.king@joyent.com>
Date:   2019-11-09T23:56:35.000Z

    11906 Add line drawing characters to ptree(1)
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions #4

Updated by Jason King almost 2 years ago

  • Related to Bug #12037: ptree zone handling is broken added
Actions

Also available in: Atom PDF