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:mime-version:content-type :content-transfer-encoding:date:from:to:subject:message-id; q= dns; s=default; b=Ax41sgR7g48L/SWcpRJJi9TPQdDjG50jrGwRU7fCwDo00/ 22FCBYQ9A9Ma81lP3RruraYLDCYIWZa0udy5Ny3+iqhGvJGql2VFG/lLRg0Qen8k 95NPG6Estn5iMs66U+UQYzF+75qpes0cg85vTNhHqvuJtkoUAhVA8iJYwVMHI= 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:mime-version:content-type :content-transfer-encoding:date:from:to:subject:message-id; s= default; bh=X8XhcnRyCj9mf4VtfxbpR9COTTg=; b=K0meax6q3tJmM81IlixO 8NbvhKK1H3Z8ik4GkAJANQsMFy0k8rhZ+3+HXeL7CmUJXOOzSuD0IAVDQACRJ1EU SGXvt0gQSMUl6d75aQ7mxBwrX8a8CA8qK3vFzFxyISq8ZNMz+Ni9R1CFCJN4u9qr P8JFRtml4QPTcl6w7atODvQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_50,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_NO,RDNS_NONE autolearn=no version=3.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 31 Jul 2013 08:37:25 +0200 From: Denis Excoffier To: Subject: pasting several lines into the shell Message-ID: <74bb5742cb16b1259d7307928a5f0e22@denis-excoffier.org> X-Sender: cygwin AT Denis-Excoffier DOT org User-Agent: Roundcube Webmail/0.7.2 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