Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11715

inconsistent synopses in help output

Path csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail
From Benno Schulenberg <bensberg@justemail.net>
Newsgroups gnu.bash.bug
Subject inconsistent synopses in help output
Date Tue, 20 Oct 2015 11:55:11 +0200
Lines 45
Approved bug-bash@gnu.org
Message-ID <mailman.675.1445334925.7904.bug-bash@gnu.org> (permalink)
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain
Content-Transfer-Encoding 7bit
X-Trace usenet.stanford.edu 1445334925 21849 208.118.235.17 (20 Oct 2015 09:55:25 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=justemail.net; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=kCG 0LYnSRJhOOrbwB6ZMeMijhNw=; b=AXa7cz7yN/q2LgEUiK84qGNHV2OJBuXFCSz 0ul1xpS/K3bKRkSXDQpqNyS/pcTsZyGB8EeXDT65VZ7Hg0OrTooUJeA88CPZu7T9 m03/qzC2kNlRrxvfv0qH2erXAbwYiHUGJ7w2Ulb1CGe2gOrRwtu8mPcdJMryV+JS /FI4nJoo=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=kCG0LYnSRJhOOrbwB6ZMeMijhNw=; b=ROu9n Ze4s1fAeG41ZxJQAvM8TxkMc3dpwQxoQAo84y7BCn1waFFRqPCxkg+JlYmrtsc7d uNU/MWMShC3cFxwkbEN5ZyNr+aAZOG/AetAL94mUzjLfVkSoQ4O/nVq87IVsGTgT BiGFIYkTiw1s9Zk9UV05g5yjBCITGmpgLLHy4Q=
X-Sasl-Enc 1C2xSQWeDGohRNuIE3HlUWBhe5qKQGVFPIP0XYcyU80T 1445334911
X-Mailer MessagingEngine.com Webmail Interface - html
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 66.111.4.26
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11715

Show key headers only | View raw


In the output of the 'help' command in any bash upto and including
4.4-beta, the possible arguments in most of the commands listed are
shown in lowercase, but for some they are in uppercase.  Examples:

  alias [-p] [name[=value] ... ]
  break [n]
  case WORD in [PATTERN [| PATTERN]...) COMMANDS ;;]... esac
  dirs [-clpv] [+N] [-N]
  enable [-a] [-dnps] [-f filename] [name ...]
  for NAME [in WORDS ... ] ; do COMMANDS; done
  help [-dms] [pattern ...]
  local [option] name[=value] ...
  while COMMANDS; do COMMANDS; done

This is inconsistent.  What's more, in the descriptions that follow
when you do 'help SOMECOMMAND', the arguments are always referred
to in uppercase.  For example in the output of 'help break' it says:
"If N is specified, break N enclosing loops."  But its synopsis line
says: "break: break [n]".  It would be much clearer if the synopsis
and the description would both use uppercase for this argument,
just like the 'dirs' command already does.

Also, using uppercase for arguments makes it much easier to see
what is a word that needs to be replaced and what is a keyword
that must be typed as is, like in the 'case' and 'for' commands.

For example:

  command [-pVv] command [arg ...]

would be clearer when written as:

  command [-pVv] COMMAND [ARG ...]

So...  I propose to write all replaceable argument words in the
help sysnopses in uppercase, just like they are in the reference
manual (the Info document).  I can make the patch, if you wish.

Benno

-- 
http://www.fastmail.com - IMAP accessible web-mail

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

inconsistent synopses in help output Benno Schulenberg <bensberg@justemail.net> - 2015-10-20 11:55 +0200

csiph-web