www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/02/02/05:27:24

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_50,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <BDBE18C8A1BA4C28ADCCF6BA5DC7B54B@desktop2>
From: "Sisyphus" <sisyphus1 AT optusnet DOT com DOT au>
To: "xerces8" <xerces8 AT butn DOT net>, <cygwin AT cygwin DOT com>
References: <WorldClient-F200902021105 DOT AA05540020 AT butn DOT net>
In-Reply-To: <WorldClient-F200902021105.AA05540020@butn.net>
Subject: Re: Copy converts tabs to spaces ?
Date: Mon, 2 Feb 2009 21:25:58 +1100
MIME-Version: 1.0
X-IsSubscribed: yes
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

----- Original Message ----- 
From: "xerces8" <xerces8 AT butn DOT net>

> Details:
> - print the content of some text file that has tabs (like a C program 
> source) : cat foo.c
> - select and copy the text with the mouse
> - paste (ctrl-V) into WordPad

You'll get the same behaviour if, instead of running 'cat foo.c' in the 
bash/RXVT shell, you start by running 'type foo.c' in the cmd.exe shell.

One workaround is to run 'notepad foo.c' instead of 'cat.c', and then 
copy'n'paste from the instance of foo.c that has been opened in notepad.

Is that a suitable alternative ?

Cheers,
Rob


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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