This is the mail archive of the
mailing list for the Cygwin project.
RE: faq: why doesn't tilde expansion work in shell scripts in cygwin?
- From: Dan Kegel <dkegel at ixiacom dot com>
- To: Dan Kegel <dkegel at ixiacom dot com>, ''Michael A Chase ' ' <mchase at ix dot netcom dot com>, "'''cygwin at cygwin dot com' ' '" <cygwin at cygwin dot com>
- Date: Sat, 24 Aug 2002 21:02:10 -0700
- Subject: RE: faq: why doesn't tilde expansion work in shell scripts in cygwin?
Aha. I figured it out, and it looks like Cygwin's ash might not be posix
compliant. Tilde expansion is required by Posix; see
Looking at the source for the ash used in Cygwin, it looks like
tilde expansion is disabled! The Makefile.am in
defines SMALL by default, which shuts off tilde expansion.
That would explain my result (though not why tilde works from the
ash commandline; curious).
Am I correct? It's a little suprising to find Cygwin
doesn't use a Posix-compliant shell...
From: Dan Kegel
To: 'Michael A Chase '; Dan Kegel; ''firstname.lastname@example.org' '
Sent: 24.08.2002 20:20
Subject: RE: faq: why doesn't tilde expansion work in shell scripts in
Say, it says in
that tilde expansion is required. Yet ash claims it is posix compliant.
Hrm. Somebody's wrong somewhere... maybe ash is only compliant to
an outdated posix version?
From: Michael A Chase
To: Dan Kegel; 'email@example.com'
Sent: 24.08.2002 19:49
Subject: Re: faq: why doesn't tilde expansion work in shell scripts in
On Sat, 24 Aug 2002 16:01:36 -0700 Dan Kegel <firstname.lastname@example.org> wrote:
> In all my shell scripts, I'm having to replace ~ with $HOME to
> get them to work under Cygwin. Seems a bit odd. Am I doing
> something wrong? This is with a fairly fresh installation
> of Cygwin on Win2K.
Which shell is being invoked for the scripts? If it is /bin/sh, ash
doesn't do tilde expansion.
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html