public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Marco Atzeri <marco.atzeri@gmail.com>
To: Mitch Rosefelt <pixeldroid@gmail.com>,
	"cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: Problem - Possibly Cygwin
Date: Fri, 25 Jan 2019 18:28:00 -0000	[thread overview]
Message-ID: <21554440-5fa2-2367-7246-6d85e5b1f094@gmail.com> (raw)
In-Reply-To: <cce9f22e-9ad7-e72e-bd94-ad86e0e94d7e@gmail.com>

back in the cygwin ML

Am 25.01.2019 um 17:39 schrieb Mitch Rosefelt:
> Hi Marco:
> Thanks for taking a look at this.
>
> Are you referring to my Environmental Vars?
 > They look pretty clean. No mention of cygwin.
 >

No. As you seem to have multiple programs
that are using different cygwin1.dll, if you have
those directories on the PATH they could interfere
with each other.

Try every application with clean PATH
that does not include the other applications.


> I was able to get expo (Mobile App Dev Tool) working by adding a local
> install into my nodeJS project and calling it from there.
> I noticed a difference in the local script vs the script in the global
> install. The local script calls "node" where the global script calls
> "pwsh" (which produces the error):
>
> Call in local repo \LactFacts\lactfact_190118\node_modules\.bin\expo:
> #!/bin/sh
> basedir=$(dirname "$(echo "$0" |sed -e 's,\\,/,g')")
> case`uname`in
> *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
> esac
> if[ -x"$basedir/node"];then
> "$basedir/node""$basedir/../expo-cli/bin/expo.js""$@"
> ret=$?
> else
> node "$basedir/../expo-cli/bin/expo.js""$@"
> ret=$?
> fi
> exit$ret
>
> Call to global install C:\Users\Mitch\AppData\Local\Yarn\bin\expo.ps1
> #!/bin/sh
> basedir=$(dirname "$(echo "$0" |sed -e 's,\\,/,g')")
> case `uname`in
> *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
> esac
> if[ -x"$basedir/pwsh"]; then
> "$basedir/pwsh""$basedir/../Data/global/node_modules/.bin/expo.ps1""$@"
> ret=$?
> else
> pwsh "$basedir/../Data/global/node_modules/.bin/expo.ps1""$@"
> ret=$?
> fi
> exit$ret
>
> So it appears that PowerShell is choking on the script:
> At C:\Users\Mitch\AppData\Local\Yarn\bin\expo.ps1:5 char:13
> + *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
> + ~
> Unexpected token ')'inexpression or statement.

as it is a Bash script, I am not surprised,
and "cygpath" is a cygwin utility that provides
path information relative to its own cygwin1.dll





---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


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

      parent reply	other threads:[~2019-01-25 18:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-25 13:24 Mitch Rosefelt
2019-01-25 13:29 ` Marco Atzeri
2019-01-25 16:39   ` cyg Simple
     [not found]   ` <cce9f22e-9ad7-e72e-bd94-ad86e0e94d7e@gmail.com>
2019-01-25 18:28     ` Marco Atzeri [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21554440-5fa2-2367-7246-6d85e5b1f094@gmail.com \
    --to=marco.atzeri@gmail.com \
    --cc=cygwin@cygwin.com \
    --cc=pixeldroid@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).