Copy converts tabs to spaces ?

Sisyphus sisyphus1@optusnet.com.au
Mon Feb 2 10:27:00 GMT 2009


----- Original Message ----- 
From: "xerces8" <xerces8@butn.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/



More information about the Cygwin mailing list