X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 516023858401 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:to:content-language:from :subject:content-transfer-encoding; bh=j0DcLmbJ4n7oXN70FtCl4uMwyaY4L85seNBTZJivu08=; b=LxwH4E3W4Kd+6w65ZWVKfaf6bKtQiDD//061nALZ+WkChx5aNZtJj6uF1F1+oyjDjV 6m6aNogDoqz6+vmMCdVoEWHdGl86pJcogob7Y2Yfm/tD3OsXY1ubTP8VI9qwbR4kWKDW yCHPVqww/YKcUiXqdgn0li3inFsT3W+d2sVIBUgcFhGQoy+/guQ4LfHLBCyfBlDNAmAH rTkzNE1AZhdXG9rznU/FcPQ4c9kzyFEs+NC79BUp2p9Kitqy8XJXmLEEVZN5qxosAUTn wC2j5q+xf4dmV9fEJRU4Mt0FgkkafJCezKuf6ZzeNlVB2zSJ7tKwRxgdUQO4GSzsh/N6 9dqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:to :content-language:from:subject:content-transfer-encoding; bh=j0DcLmbJ4n7oXN70FtCl4uMwyaY4L85seNBTZJivu08=; b=bvey+NOMK2oVrUkUO7WE1wTguxcPPkjs9Qwf3Wc9wfcMa7oACmHwLtZkScNJP5YEGC UGehurjgYbbjdvUifViPRox7qbQaqhkH1vuxMR5y/93Znqpf3vd/J6Qml7jCODbwiX8j aZFnP1bU8T8cq32Mbz/m5Yi0idoTJD9ycxK0+nb2EDUVRNSatVz/g0H4d24dU9Eq1JR6 60t3xIw/YBLeFcoUgGS5TP3qEmqXmSY2+Pj5grDXRDrMW/yBaV8nKGXF7Badj/7+cwKS x0ADOW5PExRxBj5YlQW/x19PInHo85gFzEpZF8g76M7zSETgfynEo8xBq7sdrV8tigf8 81Fg== X-Gm-Message-State: AOAM532htgTdAFpsPtQWcXBUnZBeOuAh1iCvxVv8DppIy7MSqc8H1zS6 zTKmxdfDQByN5KmYImn9LZHGYiLgOs0= X-Google-Smtp-Source: ABdhPJxaxhvdHvK/Q3L56M8OGcdvkRRvoL6i480j1qHRPV5Oxu0/wKRbaPvH+razq/cDZ5+VYOh6CA== X-Received: by 2002:a05:6512:3402:b0:448:c29:ce8a with SMTP id i2-20020a056512340200b004480c29ce8amr19997843lfr.633.1647988552976; Tue, 22 Mar 2022 15:35:52 -0700 (PDT) Message-ID: <8034c9ba-8384-a239-faf8-e8376d6dbc2e@gmail.com> Date: Tue, 22 Mar 2022 23:35:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 To: cygwin AT cygwin DOT com Content-Language: en-US From: =?UTF-8?Q?Piotr_Gli=c5=baniewicz?= Subject: Running a command in a specific directory X-Spam-Status: No, score=-1.3 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 22MMaUUG025706 Hi, I'm trying to run a command at a specific "Windows" path. Basically something similar to what chere does for bash, but I want to execute ls in bash for a specific directory. I've tried variations of what chere leaves in the registry: C:\cygwin64\bin\bash.exe -c "/bin/xhere /bin/bash.exe '%L'" Adding simply `-c ls` didn't work. To start with something simpler I've launched bash and tried just to guess what xhere want's, but I don't really know what's happening. I couldn't find any help for xhere. /cygdrive/c $ /bin/xhere '/bin/bash.exe -c ls' d: /bin/xhere: line 38: [: too many arguments /bin/xhere: line 41: [: too many arguments /bin/xhere: line 64: [: too many arguments Starting /bin/bash.exe -c ls -/bin/bash: ls: command not found /cygdrive/c $ /bin/xhere "/bin/bash.exe -c ls" d: /bin/xhere: line 38: [: too many arguments /bin/xhere: line 41: [: too many arguments /bin/xhere: line 64: [: too many arguments Starting /bin/bash.exe -c ls -/bin/bash: ls: command not found Any hints, how to properly pass `/bin/bash.exe -c ls` to xhere? -- Regards, Piotr Gliźniewicz -- 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