From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by sourceware.org (Postfix) with ESMTPS id 102B73858C27 for ; Sat, 31 Oct 2020 12:37:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 102B73858C27 Received: by mail-lf1-x134.google.com with SMTP id j30so11344358lfp.4 for ; Sat, 31 Oct 2020 05:37:11 -0700 (PDT) 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 From: "Matt D." Date: Sat, 31 Oct 2020 08:36:58 -0400 Message-ID: Subject: Error: "-gThe system cannot find the file specified." When bash script containing "cut" is run from cmd To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Oct 2020 12:37:14 -0000 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.