X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: From: "Francois L'Archeveque" To: 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 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 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/