This is the mail archive of the
cygwin
mailing list for the Cygwin project.
$PATH contains dot but unclear where it comes from
- From: Robert Klemme <shortcutter at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 6 Feb 2014 10:01:14 +0100
- Subject: $PATH contains dot but unclear where it comes from
- Authentication-results: sourceware.org; auth=none
Hi,
in cygwin64 on Win 7 64 bit I find "." in $PATH:
$ echo "$PATH" | tr : \\n | egrep '^\.$'
.
However, I was not able to detect where this came from. It's neither
in the Windows system environment variables nor in the user
environment variables - as you can also see on a cmd prompt:
C:\Users\rklemme>path | find ";."
C:\Users\rklemme>path | find ".;"
C:\Users\rklemme>
There is nothing in rc files (you only see my workaround to remove it
which is commented ATM):
$ egrep -n '\..*PATH|PATH.*\.' .bash_profile .profile .bashrc
.bash_aliases /etc/profile /etc/bash*
.bash_profile:31:# remove "." from PATH
.bash_profile:32:# PATH=$(echo "$PATH" | sed -re
's#^:*\.:+##;s#:+\.:*$##;s#:+\.:+##g')
/etc/bash_completion:1092:# - stdout: Filename of command in PATH
with possible symbolic links resolved.
/etc/bash_completion:1372:# completes on directories under those
specified in CDPATH.
/etc/bash_completion:1389: if [[ -z "${CDPATH:-}" || "$cur" ==
?(.)?(.)/* ]]; then
egrep: /etc/bash_completion.d: Is a directory
Do you have any idea where this might originate? I'd rather fix the
root cause than keep my workaround.
Kind regards
robert
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple