From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailsrv.cs.umass.edu (mailsrv.cs.umass.edu [128.119.240.136]) by sourceware.org (Postfix) with ESMTPS id 6F2863858D20 for ; Wed, 15 Mar 2023 03:07:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6F2863858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.umass.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.umass.edu Received: from [192.168.50.148] (c-24-62-201-179.hsd1.ma.comcast.net [24.62.201.179]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id 0F1AA401CE28; Tue, 14 Mar 2023 23:07:56 -0400 (EDT) Message-ID: <089bf199-7d23-43ba-3a3b-e0bd6dddc5eb@cs.umass.edu> Date: Tue, 14 Mar 2023 23:07:54 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Reply-To: moss@cs.umass.edu Subject: Re: exe in path directory, "command not found" Content-Language: en-US To: WyntrHeart , "cygwin@cygwin.com" References: <5qX4xu9puPlJx_NA1mLmAZHSRFqMNOeQc7F2TddnyUMnEkBqGYqoeBrooBc-gc1WHWtQhDNPzg_la1O2qRZPv9jFoZ5-zQJ-xaMU7uvW4Iw=@proton.me> From: Eliot Moss In-Reply-To: <5qX4xu9puPlJx_NA1mLmAZHSRFqMNOeQc7F2TddnyUMnEkBqGYqoeBrooBc-gc1WHWtQhDNPzg_la1O2qRZPv9jFoZ5-zQJ-xaMU7uvW4Iw=@proton.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 3/14/2023 11:00 PM, WyntrHeart via Cygwin wrote: > I've added /cygdrive/c/program\ files/notepad++ to my path in .bash_profile, double checking with echo to make sure that the directory is in the path. But when I type "notepad++.exe" or "notepad++" I get "bash: notepad++: command not found". I did restart the terminal before testing to make sure that .bash_profile was loaded and path was updated. Is there something I'm doing wrong here or is this a bug? That would be: /cygdrive/c/Program\ Files/notepad++ -- assuming that's a *folder* that contains notepad++.exe ... Note that path (written PATH, and generally exported) contains folder names separated by colons. To add to the end you can do: export PATH="$PATH:/cygdrive/c/Program Files/notepad++" Note: no \ in front of space inside the quotes. Best - Eliot Moss