delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/07/03/00:28:57

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; q=dns; s=default; b=DQ8q68VJxvlvdb1b++poI9+Mss0q
38z26goL42DbtQsKCFtngO0j8zd6LLnbWfCA/vFZ11lxYM8UHVGfhowvHkmNnima
+4iNyzG8lkar+qXLiwTEC0yHGz4pLg6tOIMKefxW5aUfFbyPLzwufNOk6EidAfLG
UmLrLFFeym9G/HU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:content-type:mime-version:subject:from
:in-reply-to:date:content-transfer-encoding:message-id
:references:to; s=default; bh=92lEeG2GegCSrKi14jaUMtAJUQE=; b=pr
STfAuGybA7IsELAghzVYDodsJTV59IdwP2pvSHzuzPMsiJbMe6iIKhmDwwVxsRem
JDEDmaMJ6R+KW3b8Ky3yyBYulJUSn/ku+JO/2Y9bq3kaAN9vS/pUS1EHQmjaG+il
gruHZ5z66RX73XhuBPQOl/LxuSFgybykHujQY2MpI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: etr-usa.com
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\))
Subject: Re: How to expand tabs? Where is expand program.
From: Warren Young <wyml AT etr-usa DOT com>
In-Reply-To: <DC315DD3-D309-4473-BF93-743721D42082@etr-usa.com>
Date: Thu, 2 Jul 2015 22:28:40 -0600
Message-Id: <9E1A8870-20EA-4AF8-A33B-A44D18C89CD1@etr-usa.com>
References: <701185250 DOT 1353195 DOT 1435878843444 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT com> <DC315DD3-D309-4473-BF93-743721D42082 AT etr-usa DOT com>
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t634Sqb9024538

On Jul 2, 2015, at 6:46 PM, Warren Young <wyml AT etr-usa DOT com> wrote:
> 
> expand(1) goes way, way back before Cygwin.  Not as far back as V7 Unix.  Maybe 4.3BSD?

I did some research, and it turns out that that’s all wrong. :)

According to the FreeBSD/Mac OS X man pages, expand(1) was first introduced in 3BSD (1978), which would put it a bit earlier than the public release of UNIX V7 (1979).

Although V7 did bring some stuff over from BSD — most notably vi — and the borrowings continued until the Great Reunification in SVR4, I can’t find a manual reference to expand(1) in any AT&T Unix, not even the Research branches.

As far as I can tell, expand(1) wasn’t standardized until 1997 as part of SUSv2:

  http://pubs.opengroup.org/onlinepubs/007908799/xcu/expand.html

Weird.

That also means the comment about “before Cygwin” is wrong, since that first appeared in 1995, before SUSv2.  The Cygwin Time Machine doesn’t have any pre-1997 releases of Cygwin, but I did find a 1996 tarball of GNU textutils, and it has expand(1), so it is highly likely that Cygwin had expand(1) before SUSv2 came out.

Wrong, wrong, wrong.  So sad. :)
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019