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: 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 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: Subject: Interactive non-login shell and tilde expansion From: Steven Penny To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 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