public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: faq: why doesn't tilde expansion work in shell scripts in cyg win?
@ 2002-08-25 19:36 Dan Kegel
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Kegel @ 2002-08-25 19:36 UTC (permalink / raw)
  To: 'Randall R Schulz ', 'cygwin@cygwin.com '

Oops, you're right.  Cygwin setup puts an icon to bash on the desktop,
so the ~ expansion I saw was by bash.

I have nothing against a speedy /bin/sh, but it seems rather short-sighted
to use a non-posix-compliant one.  Has anyone put ash (as compiled for
Cygwin) through any posix compliance tests?  Maybe all we need to do
is enable ~ expansion to become compliant... it's there in ash, just 
ifdef'd out.

- Dan

-----Original Message-----
From: Randall R Schulz

At 21:02 2002-08-24, Dan Kegel wrote:
>Aha. I figured it out, and it looks like Cygwin's ash might not be
posix 
>compliant. Tilde expansion is required by Posix; see 
>< http://www.opengroup.org/onlinepubs/007904975/utilities/xcu_chap02.htm
l#tag_02_06_01>
>
>Looking at the source for the ash used in Cygwin, it looks like tilde 
>expansion is disabled! The Makefile.am in 
>< http://programming.ccp14.ac.uk/ftp-mirror/programming/cygwin/pub/cygwi
n/release/ash/ash-20020731-1-src.tar.bz2> 
>defines SMALL by default, which shuts off tilde expansion. That would 
>explain my result (though not why tilde works from the ash commandline;

>curious).

Please explain "works from the ash commandline." I can see no
circumstance 
in which tilde expansion is happening in ash.


>Am I correct?  It's a little suprising to find Cygwin doesn't use a 
>Posix-compliant shell...

As I understand it, Cygwin includes ash specifically as a
very-light-weight 
shell for scripting and makefiles. It's small size and minimal feature
set 
gives it a low start-up time, which helps a lot when many of them get 
executed, for example when running make.


>- Dan


Randall Schulz
Mountain View, CA USA


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: faq: why doesn't tilde expansion work in shell scripts in cyg win?
  2002-08-24 21:25 ` faq: why doesn't tilde expansion work in shell scripts in cyg win? Randall R Schulz
@ 2002-08-24 22:06   ` Christopher Faylor
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Faylor @ 2002-08-24 22:06 UTC (permalink / raw)
  To: cygwin

On Sat, Aug 24, 2002 at 09:26:18PM -0700, Randall R Schulz wrote:
>>Am I correct?  It's a little suprising to find Cygwin doesn't use a 
>>Posix-compliant shell...
>
>As I understand it, Cygwin includes ash specifically as a very-light-weight 
>shell for scripting and makefiles. It's small size and minimal feature set 
>gives it a low start-up time, which helps a lot when many of them get 
>executed, for example when running make.

Correct.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: faq: why doesn't tilde expansion work in shell scripts in cyg win?
  2002-08-24 21:04 faq: why doesn't tilde expansion work in shell scripts in cygwin? Dan Kegel
@ 2002-08-24 21:25 ` Randall R Schulz
  2002-08-24 22:06   ` Christopher Faylor
  0 siblings, 1 reply; 3+ messages in thread
From: Randall R Schulz @ 2002-08-24 21:25 UTC (permalink / raw)
  To: cygwin

Dan,

At 21:02 2002-08-24, Dan Kegel wrote:

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-25 19:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-25 19:36 faq: why doesn't tilde expansion work in shell scripts in cyg win? Dan Kegel
  -- strict thread matches above, loose matches on Subject: below --
2002-08-24 21:04 faq: why doesn't tilde expansion work in shell scripts in cygwin? Dan Kegel
2002-08-24 21:25 ` faq: why doesn't tilde expansion work in shell scripts in cyg win? Randall R Schulz
2002-08-24 22:06   ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).