From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18021 invoked by alias); 14 Jan 2014 03:54:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 18007 invoked by uid 89); 14 Jan 2014 03:54:20 -0000 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 Received: from mail-pd0-f174.google.com (HELO mail-pd0-f174.google.com) (209.85.192.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 14 Jan 2014 03:54:18 +0000 Received: by mail-pd0-f174.google.com with SMTP id w10so3583866pde.19 for ; Mon, 13 Jan 2014 19:54:16 -0800 (PST) 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) Received: by 10.68.95.133 with HTTP; Mon, 13 Jan 2014 19:54:16 -0800 (PST) Date: Tue, 14 Jan 2014 03:54:00 -0000 Message-ID: Subject: Interactive non-login shell and tilde expansion From: Steven Penny To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00129.txt.bz2 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