www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/09/11/21:39:19

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <BLU145-W233FDA9EEE2B871B8C1825C9510@phx.gbl>
From: "Francois L'Archeveque" <fla_2 AT hotmail DOT com>
To: <cygwin AT cygwin DOT 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
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019