delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/06/12:36:48

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:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=KHjVWIAQfaFhmiVuNhjWJKb/wEhTb
x6hOIF4YB8n3RapaU/uMvra0l2ph7vXwitLVIyOxXbP+l4SMTZ1z7FPSfOvtUZxa
L1kt6H76uirbRh240LdokqM42kIRoXJMVgEtfDf92UZf/tKSFOkMVRc6f2vWMOxl
V/3LpIP3dtTxeU=
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:from:date:message-id:subject:to
:content-type; s=default; bh=osnqwXCHhKRchZH1cozqXXsVQws=; b=Clr
cNwe7SKepJxSinGqEG84stqr+Et5hpoI+g2HYIC3whmRxv62p0G/jjJTHRfGpnOI
QBQ5QQVsfF0Lo1660FiJyY5KpK2IHNuiyYjj6aaFZbB64zw+2QMpzJh+atHJkgqM
9DHkwcjMQq+MCRphzS1eH2c8P2mauAwJ6GGTbVoA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=alt, lee
X-HELO: mail-io0-f177.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=1CLXayc98jNPvyAOvGwMsiaB2+X/eWaopZCpEidBE6Y=; b=HZDZsqaaKQ811GVW3NGouU1HIltppjFZYWa7FeT+K+HRk/BmyCLNKotWSmPlWuzMsK qFCJzIu0zySVLXuwHvKa/s/o5Q0oTn9bZhdrYYAE5Y8pXO+0sxLSbFBABKeBImsYGeRD /PQWAnq54Ut7ZAAVL8j5ZAR12cqEJUVQyo5k077QPiEM9f3WBAzsHXxU3T5IiFWF43vF lGXkjOy3YnWekb+g/3Brwx37y5ZCZE0XTsS4oT9FDXavzDvsCuNNYzKyZfkXsQNCuYb3 SbYbaSqXe7gCMDS59gxrZycnYUr71nVcovs6Ky6A+HySDgjPTU6ZkTRAVqRKQF0FTYS+ 5S5g==
X-Gm-Message-State: AEkoouumfivwPp0gx2eN/uoXxkDaNTETi/bIz0Ar34gyrISLysb26ya16iWZveMN9OIH6AKt/YUFseFJGZ8JMg==
X-Received: by 10.107.12.34 with SMTP id w34mr97914933ioi.171.1470501385625; Sat, 06 Aug 2016 09:36:25 -0700 (PDT)
MIME-Version: 1.0
From: Lee <ler762 AT gmail DOT com>
Date: Sat, 6 Aug 2016 12:36:25 -0400
Message-ID: <CAD8GWsu_oU3tN+NBkdzkS8zF+X6dfgbbqHUtmJ7WJvTUdYzBWA@mail.gmail.com>
Subject: bash tab completion
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

I have
  # No over-writing files
  set -o noclobber
in my .bash_profile, so if I want to redirect output to an already
existing file I have to use " >| "

What I recently noticed is that tab completion doesn't work after >|

For example:

$ ls /tmp/xc*
/tmp/xcompile.diff

$ diff > /tmp/xc[tab]
and it expands to "$ diff > /tmp/xcompile.diff "

$ diff >| /tmp/xc[tab]
and nothing happens.

What seems a bit strange is that
$ diff >| /tmp/xc<alt>M<alt>-<alt>/
gives me
$ diff >| /tmp/xcompile.diff

"/tmp/xc" doesn't start with any of "$~@", there is no command, alias
or function that starts with "/tmp/xc" and so it seems like tab
completion should give me the same thing as <alt>M-/ but it doesn't
:-(


Is there something I need to do so that tab completion after " >| " works?


TIA,
Lee

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019