public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Error: "-gThe system cannot find the file specified." When bash script containing "cut" is run from cmd
@ 2020-10-31 12:36 Matt D.
  2020-10-31 12:45 ` Matt D.
  0 siblings, 1 reply; 2+ messages in thread
From: Matt D. @ 2020-10-31 12:36 UTC (permalink / raw)
  To: cygwin

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.

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

* Re: Error: "-gThe system cannot find the file specified." When bash script containing "cut" is run from cmd
  2020-10-31 12:36 Error: "-gThe system cannot find the file specified." When bash script containing "cut" is run from cmd Matt D.
@ 2020-10-31 12:45 ` Matt D.
  0 siblings, 0 replies; 2+ messages in thread
From: Matt D. @ 2020-10-31 12:45 UTC (permalink / raw)
  To: cygwin

Please ignore this. There was an error in my test case.

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

end of thread, other threads:[~2020-10-31 12:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-31 12:36 Error: "-gThe system cannot find the file specified." When bash script containing "cut" is run from cmd Matt D.
2020-10-31 12:45 ` Matt D.

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