public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Matt D." <codespunk@gmail.com>
To: cygwin@cygwin.com
Subject: Error: "-gThe system cannot find the file specified." When bash script containing "cut" is run from cmd
Date: Sat, 31 Oct 2020 08:36:58 -0400	[thread overview]
Message-ID: <CAC+X2=+wSxWecp+JgXPBDDnKtfBE9AWsOW=TWRkFFuvVq2gHGA@mail.gmail.com> (raw)

Simple Bash script:

> #!/bin/bash
>
> cut

Save as "testme.sh" in C:\ or elsewhere.

Open a Windows command prompt and type:

> cmd /c bash -c /c/testme.sh

I get the following error:

> -gThe system cannot find the file specified.

This only seems to trigger when bash is running as a child process of cmd.

             reply	other threads:[~2020-10-31 12:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-31 12:36 Matt D. [this message]
2020-10-31 12:45 ` Matt D.

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='CAC+X2=+wSxWecp+JgXPBDDnKtfBE9AWsOW=TWRkFFuvVq2gHGA@mail.gmail.com' \
    --to=codespunk@gmail.com \
    --cc=cygwin@cygwin.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).