This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ash does not understand '~'

On Fri, 17 Oct 2003, Corinna Vinschen wrote:

> On Fri, Oct 17, 2003 at 12:19:36PM +0200, Ralf Habacker wrote:
> > Hi,
> >
> > the following shell script does not work at least with ash-20031007-1
> > although I don't see any reason why this should not be a valid syntax. If
> > you use
> The reason is, '~' is an extension to the bourne shell syntax, first
> defined in csh or tcsh, AFAIK.  ash is a pure bourne shell with next
> to no extensions. Using '~' in a shell script is non-portable.
> Corinna

FWIW, the "export VAR=VALUE" syntax is also non-portable, and was
introduced in ksh.  In sh, "VAR=VALUE; export VAR" should be used.
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]