public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Eliot Moss <moss@cs.umass.edu>
To: WyntrHeart <WyntrHeart@proton.me>,
	"cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: exe in path directory, "command not found"
Date: Tue, 14 Mar 2023 23:07:54 -0400	[thread overview]
Message-ID: <089bf199-7d23-43ba-3a3b-e0bd6dddc5eb@cs.umass.edu> (raw)
In-Reply-To: <5qX4xu9puPlJx_NA1mLmAZHSRFqMNOeQc7F2TddnyUMnEkBqGYqoeBrooBc-gc1WHWtQhDNPzg_la1O2qRZPv9jFoZ5-zQJ-xaMU7uvW4Iw=@proton.me>

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

  reply	other threads:[~2023-03-15  3:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-15  3:00 WyntrHeart
2023-03-15  3:07 ` Eliot Moss [this message]
2023-03-15  3:27 ` René Berber
2023-03-15  3:27   ` René Berber
2023-03-15  7:27 ` Sam Edge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=089bf199-7d23-43ba-3a3b-e0bd6dddc5eb@cs.umass.edu \
    --to=moss@cs.umass.edu \
    --cc=WyntrHeart@proton.me \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).