X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=vvhExQIfSaHDn9cV3fSEvR60pAXep DKIxxr4OWhUxO3OWrZxG8pGvevEa3XubLWF7wX1loWaLrTLvVvDGqjnKn1kx8odF 8DkF5SkAZXatvXM9xRQiOzGQUsThwweUC2wbMYm36n6dheLCLSG4YpEVqGfCo0+G 1LZZOtrv+nAyYQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=/UfjfgrAglXUz22HFk1IhTF8gVU=; b=yJ8 v8B8rj1xu78VJbBmZxQW+Z1fRT+VJCRRDpzknZ2BGiTSem5Xz30QvrGcU1L7eWEN icLGNhOKNJH5St1O09lpc/0u3k4F1gTx/ZMx2HcEoEtMEH4e+U1bx/litsG5bti/ LIlqX5TzfFpiIfFZCeVKc5uvl6NGMVE77v+NeRas= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f45.google.com MIME-Version: 1.0 X-Received: by 10.112.128.170 with SMTP id np10mr4596951lbb.22.1391677274299; Thu, 06 Feb 2014 01:01:14 -0800 (PST) Date: Thu, 6 Feb 2014 10:01:14 +0100 Message-ID: Subject: $PATH contains dot but unclear where it comes from From: Robert Klemme To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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