The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: meillo@marmaro.de (markus schnalke)
Subject: [TUHS] BSD mail(1) line addressing
Date: Mon, 12 Sep 2016 11:02:19 +0200	[thread overview]
Message-ID: <1bjN87-1Lm-00@marmaro.de> (raw)
In-Reply-To: <20160912004332.4362323.94475.6921@stanleylieber.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1659 bytes --]

[2016-09-11 20:43] stanley lieber <sl at stanleylieber.com>
>
> Anyone know what considerations informed the decision (way back when) to eschew
> ed-like line addressing and switch to the currently entrenched, reversed form?
> 
> EXAMPLES
> 
> ‎V8 mail:
> 
> 1,5p        # prints messages one through five
> 
> BSD mail:
> 
> p1-5        # prints messages one through five

Maybe there was an influence from MH, where it would be written:

	show 1-5

This snippet from FreeBSD's manpage for mail(1) could have been
part of some MH documentation as well:

   Specifying Messages
     Commands such as print and delete can be given a list of message numbers
     as arguments to apply to a number of messages at once.  Thus ``delete 1
     2'' deletes messages 1 and 2, while ``delete 1-5'' deletes messages 1
     through 5. [...]


MH was created at RAND Corporation in 1977/78. In the early eighties,
the University of California at Irvine took over the development.

But as BSD Mail was created already in 1978, it doesn't sound too
valid ...

Maybe someone else can provide better information than my guessing.
;-)


meillo


P.S.
In our development of mmh (a modern version of MH) we currently happen
to feel limited with the ``1-5'' specification, because it hinders us
doing calculations as the ed-like ``1,20-4'' (from one to twenty minus
four). Or more real-life-oriented with symbolic names: ``l-2'' -- the
second to last message. As the minus sign is already taken for ranges,
we have to invent some new syntax or break compatibility or rely on
guessing what seems to have been meant. The MH guys would better have
done it the ed way, back then!


  reply	other threads:[~2016-09-12  9:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-12  0:43 stanley lieber
2016-09-12  9:02 ` markus schnalke [this message]
2016-09-12 12:34 ` Steffen Nurpmeso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1bjN87-1Lm-00@marmaro.de \
    --to=meillo@marmaro.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).