Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2018 19:16:17 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339783 - head/usr.sbin/ngctl
Message-ID:  <201810261916.w9QJGHe0034358@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Fri Oct 26 19:16:17 2018
New Revision: 339783
URL: https://svnweb.freebsd.org/changeset/base/339783

Log:
  Add blank line after each item in "ngctl ls -l"
  
  The output of "ngctl ls -l" is hard to read. To make it easier, add a blank
  line after each listed item much how traditional "ls -l" does when listing
  the contents of multiple directories.
  
  Sponsored by:	Smule, Inc.

Modified:
  head/usr.sbin/ngctl/list.c

Modified: head/usr.sbin/ngctl/list.c
==============================================================================
--- head/usr.sbin/ngctl/list.c	Fri Oct 26 19:03:30 2018	(r339782)
+++ head/usr.sbin/ngctl/list.c	Fri Oct 26 19:16:17 2018	(r339783)
@@ -125,6 +125,8 @@ ListCmd(int ac, char **av)
 				break;
 			ninfo++;
 			nlist->numnames--;
+			if (nlist->numnames > 0)
+				printf("\n");
 		}
 	} else {
 		while (nlist->numnames > 0) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810261916.w9QJGHe0034358>