delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/01/13/22:54:35

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:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=Zs4iy0qIqpW8VsSYZaoU/WZw+fWGq
qTQhWq5DcfcbdzeRv9SVlqj8boXL9Y0xMkxbhirJ41ovIuq+Lm/5tRMVN/SAsueX
mr3bkCAUis+MLx3V0/vSH5qRjHQ2+5HakDUTXybcD9JjDcVSdlMogO/UNaj3L+pa
f+9viPq3h5xFZo=
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:date:message-id:subject:from:to
:content-type; s=default; bh=9os9OlI0I+ZXJDDA8cXTFXbEo8c=; b=Y2g
x4YkfH7RNMITuDqRelK4yRMmrA67zCnliGEfKlsTojj4kewhR8r2SIjCJ4MinaEY
MW0voxzjYiVaH6lnv4sK1b9hwCehl81mBQlBnsi7bRhc8pHUBb+EgtcM9MMfe4xO
cLNASdal8qb0BnEjTChVohmlOPYpw8cKqke6gy4w=
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=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-pd0-f174.google.com
MIME-Version: 1.0
X-Received: by 10.68.91.3 with SMTP id ca3mr33675493pbb.20.1389671656699; Mon, 13 Jan 2014 19:54:16 -0800 (PST)
Date: Mon, 13 Jan 2014 21:54:16 -0600
Message-ID: <CAAXzdLX9Rd462R1ND28mLe7y3dFRUKHo=NT1Eujc0FEP_T=AyA@mail.gmail.com>
Subject: Interactive non-login shell and tilde expansion
From: Steven Penny <svnpenn AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

If you look at the Cygwin.bat file you have this line

    bash --login -i

Starting Cygwin this way yields expected results

    $ cat ~/foo.sh
    cat -v <<< ~

    $ ~/foo.sh
    /home/Steven

However if you change the line in Cygwin.bat to this

    bash -i

it produces unexpected results

    $ ~/foo.sh
    /home/Steve0^G

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