delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/07/02/20:46:40

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=wGOfbKwZBW+iFpLbuXkkfsMJkSbF
VbDqKNuKSnE79k8u35yTTJcxcMtImuURm9l6WksB29VYhAO0Xi9zbt1O7so/VdZr
100v6J7X9f2jHHlPFYPbih3hvDxMi02mt3EBUEFuXho73O+dzq8hvIsrJ1Pdd+RR
W9/GW0tLQm4VoXk=
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=6pwHP7irLJCNya9FHe3Cq6Q+4BE=; b=Ia
Wq9FAVXpMvWkz/HuJDDeWQBd0/ejdYDfIP8lcy3Rk/odEdeBejFm9XStW5YYnYwN
wGm9t2uo1Q7kEOVjDr597+8v0l3z+k/fYcW/RPNtu2sKiMCxezCAYkJWiHY9Z0O0
OR0L3JPIbuf6tkxibDUiC9iAurdvFjWR8vZdp4AiM=
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: <701185250.1353195.1435878843444.JavaMail.yahoo@mail.yahoo.com>
Date: Thu, 2 Jul 2015 18:46:22 -0600
Message-Id: <DC315DD3-D309-4473-BF93-743721D42082@etr-usa.com>
References: <701185250 DOT 1353195 DOT 1435878843444 DOT JavaMail DOT yahoo AT mail DOT yahoo 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 t630kakE000874

On Jul 2, 2015, at 5:14 PM, Richard Heintze <sieg_heintze AT yahoo DOT com> wrote:
> 
> There used to be a very handy cygwin program called expand for expanding tabs into spaces. 

expand(1) goes way, way back before Cygwin.  Not as far back as V7 Unix.  Maybe 4.3BSD?

> I tried searching the archives for it but there were too many hits for other topics ("expand" is a common word, apparently). 

The proper way to search for such a thing is to put “expand.exe” into the Cygwin Package Search:

    https://cygwin.com/cgi-bin2/package-grep.cgi?grep=expand.exe&arch=x86_64

It tells you it’s in coreutils.

That’s in Base, so if that didn’t get installed, or expand.exe got removed afterward, your Cygwin installation may be broken.  I’d force a reinstall of coreutils, and maybe everything else in Base, too.

> Has it been taken away? I hope not!

It pretty much can’t be taken away; it’s required by POSIX:

    http://pubs.opengroup.org/onlinepubs/9699919799/utilities/expand.html

> How can I get a command line interface for expanding tabs into spaces that I can easily use from VI?

You don’t have to, actually.  Say :set expandtab.  Now you don’t need expand(1) at all. :)

--
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