X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <BLU145-W233FDA9EEE2B871B8C1825C9510@phx.gbl>
From: "Francois L'Archeveque" <fla_2@hotmail.com>
To: <cygwin@cygwin.com>
Subject: followup to /etc/profile.d/complete.tcsh problem; followup to  "Problems starting tcsh when having spaces in username - with fix"
Date: Thu, 11 Sep 2008 21:38:24 -0400
Content-Type: text/plain; charset="iso-8859-1"
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m8C1dIan003956


If this patch has been applied upstream as is then it is still incomplete.  If you actually have a ~/.hosts file for example you enter the 'if' and the 'grep' will fail since the $f needs quotes too.

            set hosts = ($hosts `grep -v "+" $f | grep -E -v "^#" | tr -s "
" "" | cut -f 1`)

should be:

            set hosts = ($hosts `grep -v "+" "$f" | grep -E -v "^#" | tr -s "
" "" | cut -f 1`)

Thanks,
fla.

---------------------------------------------------------------------------
> diff -c complete.tcsh complete.tcsh.orig
*** complete.tcsh       Sun Apr 27 12:08:25 2008
--- complete.tcsh.orig  Thu Apr 24 17:02:02 2008
***************
*** 39,45 ****
      set noglob
      if ( ! $?hosts ) set hosts
      foreach f ("$HOME/.hosts" /usr/local/etc/csh.hosts "$HOME/.rhosts"
/etc/hosts.equiv)
!         if ( -r "$f" ) then
            set hosts = ($hosts `grep -v "+" $f | grep -E -v "^#" | tr -s "
" "" | cut -f 1`)
        endif
      end
--- 39,45 ----
      set noglob
      if ( ! $?hosts ) set hosts
      foreach f ("$HOME/.hosts" /usr/local/etc/csh.hosts "$HOME/.rhosts"
/etc/hosts.equiv)
!         if ( -r $f ) then
            set hosts = ($hosts `grep -v "+" $f | grep -E -v "^#" | tr -s "
" "" | cut -f 1`)
        endif
      end


This patch has already been applied upstream.


Thanks,
Corinna


_________________________________________________________________


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


