delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/24/22:10:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <15FDCE057B48784C80836803AE3598D53B8857@racerx.ixiacom.com>
From: Dan Kegel <dkegel AT ixiacom DOT com>
To: "'Randall R Schulz '" <rrschulz AT cris DOT com>,
"'cygwin AT cygwin DOT com '"
<cygwin AT cygwin DOT com>
Subject: RE: faq: why doesn't tilde expansion work in shell scripts in cyg
win?
Date: Sat, 24 Aug 2002 19:07:48 -0700
MIME-Version: 1.0

Aha!  No, I'll stick with /bin/sh.  Guess I just
learned a little lesson about portability.
Thanks,
Dan

-----Original Message-----
From: Randall R Schulz
To: cygwin AT cygwin DOT com
Sent: 24.08.2002 18:42
Subject: Re: faq: why doesn't tilde expansion work in shell scripts in
cygwin?

Dan,

Most likely, your scripts are being run with "/bin/sh," which in Cygwin
is 
ASH, not CSH, TCSH, KSH or BASH and hence absent support for the "~" and

"~user-name" syntaxes.

Assuming you're using a "shebang" (#!) header line in your scripts, you 
need to change them to use "/bin/bash" or /bin/tcsh," depending on which

kind of syntax they're using (unless they're very simple and don't use
any 
syntax or feature not in common to both these strains of shell).

Randall Schulz
Mountain View, CA USA


At 16:01 2002-08-24, Dan Kegel 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.
>
>Thanks,
>
>Dan


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019