X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4862338618D1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1604147835;
	bh=7AunhccNL4n9pCqhXizlEcAcSdiJ9wDVTCjOWWKgFI0=;
	h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=UhDKwwgGir4XAAES9B/jTSSP0QkGA+zCzbF7FPFmgN5n9kn8TlDfeFAH/lTgYvFuI
	 y64Dx4d1zKRd4jhbBHd9nYUpP+gNUJWOlcL894InZTQ+l873pBlasykbHQkfTyZWSj
	 vYOTuRaftjyF7O7waobEG6cat+WJbdiJ2icIvmT0=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 102B73858C27
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=/WF4cMPru42zmnFM1y9kpnp0DN9W2j6eBsbE0BpV5es=;
 b=mktUkLS56fxZiL8T10WRcZ9XzRJPzMS1L5UbbCxY0xTT/2V/GbEFlopBW6oOlJ5/Ty
 zMoyqUtNYuzHjRDEb2NJ0r3L5/8UqN2dqFbnulRbtCFfalkbsMlWyVr3uT3AQjx7nSVi
 8LiApskIYnqJeICElC0zX5RcfTwL/163FN5y59Y3ZiRsskwBCyq73mlg2fWQWv4YXHI8
 Du4hw2nOhJos8xCtW9U0MMwOjBgC71lUePetSAJFuGI8NV7HG+Yqh+jEiuKCd3dZW3Dz
 KbYwqNP2NyF49Gq/s844SJZkNzp6McJrupa9szXhVA+hiZMP8h+jfzbFUKLHtD7WNAnd
 SKJA==
X-Gm-Message-State: AOAM530kgvpbnMPtrzjH6jRNpEGFmM3B7GglCJ2kvSiemwhvIArRpkiU
 RleG2Dr71wQryJLLEWqbrTOPXQ6/alNQnrucJGSat2OB63k=
X-Google-Smtp-Source: ABdhPJyzNzAlFUnqfxJL6CGsw2ZcPJbKiB4tv0YnQ7MSt9jFM4SAzz9J5CZNEmOtfQiSFwZTi3XVrgemnC+E5Q44UOg=
X-Received: by 2002:a19:40ca:: with SMTP id n193mr2393384lfa.96.1604147830591; 
 Sat, 31 Oct 2020 05:37:10 -0700 (PDT)
MIME-Version: 1.0
Date: Sat, 31 Oct 2020 08:36:58 -0400
Message-ID: <CAC+X2=+wSxWecp+JgXPBDDnKtfBE9AWsOW=TWRkFFuvVq2gHGA@mail.gmail.com>
Subject: Error: "-gThe system cannot find the file specified." When bash
 script containing "cut" is run from cmd
To: cygwin@cygwin.com
X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: "Matt D. via Cygwin" <cygwin@cygwin.com>
Reply-To: "Matt D." <codespunk@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

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.
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
