X-Recipient: archive-cygwin@delorie.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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=pE9a3JuNHPzatFcCo+f6AhpImwb0BhLafWRma8T2V/A
	ROtBCUlcaX4H3AeIfwUGjwtHaxNmbPc4mBcrS1wecWOaXthmcHu4IExys6sEXyd5
	Lo3SEYkJw7i/V4V3zOZRihhRxJLY2sQYsnKCzWkO2ArdGIOzophx/1vEk6aBcmSs
	=
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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=ZIyCxUt5EQXMgCQ00fJWMZeKInQ=; b=blwXpzcqcswd9bzJv
	5eUbS+D9OgeDDFqwT4uN665WkPIZ3r9nCX69E2ALHP7mDFH19FeuH2PViPQ07Qdq
	MTVj7LMjPbromIf7kLbDiIe1vmBRfdMvR9AqPTQXpYaZ6BGCl9aY+g9vPOieFfuc
	huSn4GoM9rQoDAS08OrtopcI0w=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_50,KHOP_THREADED,RDNS_NONE autolearn=no version=3.3.1
Message-ID: <51F96493.2070305@tlinx.org>
Date: Wed, 31 Jul 2013 12:25:07 -0700
From: Linda Walsh <cygwin@tlinx.org>
User-Agent: Thunderbird
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: pasting several lines into the shell -- change from bash3->bash4
References: <74bb5742cb16b1259d7307928a5f0e22@denis-excoffier.org> <20130731081445.GT4166@calimero.vinschen.de>
In-Reply-To: <20130731081445.GT4166@calimero.vinschen.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Corinna Vinschen wrote:

> 
> I can reproduce the effect, and it looks like this is the result of
> an accidental checkin.  Thanks for the hint.
----
???
Is it?

AFAIK, you can no longer safely paste code into the bash command line
because the TAB char is the default completion character.


If your code is indented w/tabs (concept?!), bash tries to perform
auto-completion where it then rewaits for input depending on your
completion settings.

If you have more than a screen's worth of completions, you can
get a question:
  ls
Display all 660 possibilities? (y or n)
--
At that point all tabs are swallowed, and the first
character of your then clause gets swallowed.

This changed from bash3 where
"no_empty_cmd_completion" used to effectively be
"no_empty_line_completion".

So if you had that set, tabs on an empty line weren't taken
as completion chars, but expanded as tabs.

----
I complained about the feature loss but most bash users
don't paste code into their shells.  If you are shell
user, you aren't expected to use a GUI editor like gvim.


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

