This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Interactive non-login shell and tilde expansion
- From: Steven Penny <svnpenn at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 13 Jan 2014 21:54:16 -0600
- Subject: Interactive non-login shell and tilde expansion
- Authentication-results: sourceware.org; auth=none
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