[bug #65804] ~/bin detected as relative path

Geoff Clare <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
Follow-up Comment #6, bug #65804 (group findutils):

[comment #5 comment #5:]

> Wasn't aware that "~/bin" is not posix conform... it was just shorter :)

It's the quoting that's the problem. In a POSIX-conforming shell you can use ~
in PATH assignments, as long as you don't quote it. Then the shell assigns the
expanded value to PATH.

$ PATH="/bin:~/bin"; echo "$PATH"
/bin:~/bin
$ PATH=/bin:~/bin; echo "$PATH"
/bin:/home/geoff/bin



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65804>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.