NetBSD Problem Report #59671

From www@netbsd.org  Sat Sep 27 02:15:17 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 992B71A923D
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 27 Sep 2025 02:15:17 +0000 (UTC)
Message-Id: <20250927021516.432011A923F@mollari.NetBSD.org>
Date: Sat, 27 Sep 2025 02:15:16 +0000 (UTC)
From: uwe@stderr.spb.ru
Reply-To: uwe@stderr.spb.ru
To: gnats-bugs@NetBSD.org
Subject: mailx(1) "list" command
X-Send-Pr-Version: www-1.0

>Number:         59671
>Category:       bin
>Synopsis:       mailx(1) "list" command
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          needs-pullups
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 27 02:20:00 +0000 2025
>Closed-Date:    
>Last-Modified:  Sun Sep 28 15:55:56 +0000 2025
>Originator:     Valery Ushakov
>Release:        NetBSD 10-stable
>Organization:
>Environment:
NetBSD snips 10.0_STABLE NetBSD 10.0_STABLE (GENERIC) #0: Mon Jul  8 16:08:11 MSK 2024  uwe@majava:/home/uwe/work/netbsd/cvs/src-release-10/sys/arch/macppc/compile/GENERIC macppc

>Description:
I've tried to use mailx(1) after 30+ years while my mutt package was
being rebuilt.  My fingers still seem to remember some things.
However when I tried "list", I've got:

  & list
  Commands are:
  next, alias, print, Print, type, Type, visual, top, touch, preserve,
  delete, dp, dt, undelete, unset, mail, mbox, more, More, page, Page,
  view, View, unalias, unread, !, |, copy, chdir, cd, save, Save, source,
  set, shell, show, version, group, write, from, file, folder, folders,
  forward, bounce, ?, z, headers, help, =, Reply, Respond, reply,
  respond, edit, echo, quit, list, xit, exit, size, hold, if, ifdef,
  ifndef, else, endif, alternates, ignore, discard, retain, saveignore,
  savediscard, saveretain, Header, core, #, clobber, inc, smopts,
  unsmopts, mkread, detach, Detach, flatten, reverse, sort, thread,
  unthread, down, tset, up, expose, hide, showthreads, hidethreads,
  debug_links, tag, untag, invtags, tagbelow, hidetags, showtags,
  deldups
  & 

So it complains that "list" is not a known command (and it's not in
the man page indeed), but then it lists "list" in the list of command.
This is kinda confusing

>How-To-Repeat:
start mailx(1) and use "list" command, see it simultaneously rejected
as an invalid command and listed in the help message as a possible
command.

>Fix:

>Release-Note:

>Audit-Trail:
From: mlelstv@serpens.de (Michael van Elst)
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: bin/59671: mailx(1) "list" command
Date: Sat, 27 Sep 2025 06:56:36 -0000 (UTC)

 uwe@stderr.spb.ru writes:

 >So it complains that "list" is not a known command (and it's not in
 >the man page indeed), but then it lists "list" in the list of command.
 >This is kinda confusing

 Yes confusing.

 But 'list' is the undocumented command to list the available commands.
 If it were not known, mailx would print something like:

 Unknown command: "foo"


From: "Valery Ushakov" <uwe@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/59671 CVS commit: src/usr.bin/mail
Date: Sun, 28 Sep 2025 15:53:25 +0000

 Module Name:	src
 Committed By:	uwe
 Date:		Sun Sep 28 15:53:25 UTC 2025

 Modified Files:
 	src/usr.bin/mail: mail.1

 Log Message:
 mail(1): document "list" command

 Provide courtesy xrefs to "headers" and "z".
 PR bin/59671


 To generate a diff of this commit:
 cvs rdiff -u -r1.69 -r1.70 src/usr.bin/mail/mail.1

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->needs-pullups
State-Changed-By: uwe@NetBSD.org
State-Changed-When: Sun, 28 Sep 2025 15:55:56 +0000
State-Changed-Why:
Needs pullups.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.49 2026/05/14 01:52:41 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.