This is the mail archive of the
cygwin
mailing list for the Cygwin project.
followup to /etc/profile.d/complete.tcsh problem; followup to "Problems starting tcsh when having spaces in username - with fix"
- From: Francois L'Archeveque <fla_2 at hotmail dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 11 Sep 2008 21:38:24 -0400
- Subject: followup to /etc/profile.d/complete.tcsh problem; followup to "Problems starting tcsh when having spaces in username - with fix"
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/