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]

pasting several lines into the shell


Hello,

Starting with the 20130726 snapshot, i have problems with the clipboard.
Not the clipboard itself, but the capability to paste into the shell
in order to execute a command containing several lines (or several
commands).

% cat copypaste
/bin/cp \
  ./copypaste \
  /tmp
% putclip < copypaste
% getclip
/bin/cp \
  ./copypaste \
  /tmp
%

At this point, if i paste (middle button on my mouse) this text
(3 lines) inside a shell (can be tcsh or bash) in an xterm, sometimes
it works and the cp command is executed. But very often i get:

------------------------------------------------------------------------
%
  ./copypaste \
?  /bin/cp \
?
/bin/cp: cannot create regular file `/bin/cp': File exists
%
%   / t/mtp? m
/: No match.
% p
------------------------------------------------------------------------

After that, if i use a simple cat, enter a Return, then EOF, i get

------------------------------------------------------------------------
% cat


p mn/cp \
%
------------------------------------------------------------------------


If i paste the lines inside the vi editor, no problem.
If i paste only one line, or one line at a time, no problem.

I also tried with mintty (i'm not familiar with it). I get:
---------------------
% /bin/cp \

  ./copypaste \
?  ?   / t/mtpm
/bin/cp: accessing `t/mtpm': Not a directory
% p
---------------------
that is more or less the same.

I'm using XP SP3. I tried with CYGWIN=wincmdln set or not set, with
no change. Snapshot dated 20130723 is fine.

Regards,

Denis Excoffier.


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


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