This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Copy converts tabs to spaces ?



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]