Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Nov 2006 20:36:48 GMT
From:      Ingo Petersen<ingo.petersen.webfreenet.de@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/105154: tcshrc script sets wrong values
Message-ID:  <200611042036.kA4Kam0x026096@www.freebsd.org>
Resent-Message-ID: <200611042040.kA4Ke28b054322@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         105154
>Category:       ports
>Synopsis:       tcshrc script sets wrong values
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 04 20:40:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Ingo Petersen
>Release:        Freebsd 6.1
>Organization:
noone
>Environment:
FreeBSD  6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:42:56 UTC 2006     root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386
>Description:
In the tcshrc.complete script from pakage "tcshrc" the MANPATH ist set wrong so that not all manpages are avaiable.

In the tcshrc.alias there are aliases to ls --color which does not work
with freebsds ls.

In the tcshrc_config install scrip are aliases to cp --verbose and cp -u
which also does not exit in Freebsds cp.




>How-To-Repeat:
Install tcshrc from packages or ports.
execute tcshrc_config with optins -v and -u.

after installed (tcshrc_config -s works fine)
type "ls" on command prompt.
>Fix:
here are the fixes i made for me:
(the diffs are applied as a uuencoded tar file)

--- originale/tcshrc_config	Wed Mar 15 10:44:29 2006
+++ angepasste/tcshrc_config	Sun Oct 29 18:00:27 2006
@@ -36,7 +36,7 @@
 	SYSTEM=y
 	;;
     -v|--verbose)
-	VERBOSE=--verbose
+	VERBOSE=-v
 	;;
     -*)
 	usage
@@ -62,7 +62,18 @@
 	/bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.set 	${HOME}/.tcshrc.set
 	/bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.alias 	${HOME}/.tcshrc.alias
 	/bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.hosts 	${HOME}/.tcshrc.hosts
-	/bin/cp -u ${VERBOSE} ${SOURCE}/tcshrc.local 	${HOME}/.tcshrc.local
+	
+	if [ "`uname`" != "Linux" ] ; then
+	    if [ -e "${HOME}/.tcshrc.local" ] ; then
+		/bin/cp -f ${VERBOSE} ${HOME}/.tcshrc.local ${HOME}/.tcshrc.local.old
+		/bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.local 	${HOME}/.tcshrc.local		
+	
+	    else /bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.local 	${HOME}/.tcshrc.local
+		fi
+	    else /bin/cp -u ${VERBOSE} ${SOURCE}/tcshrc.local 	${HOME}/.tcshrc.local
+		
+	fi
+
 	echo " done." >&2
 	exit 0
 fi



---------------------------------------------------------------------------
--- originale/tcshrc.complete	Wed Mar 15 10:44:28 2006
+++ angepasste/tcshrc.complete	Sat Nov  4 20:39:58 2006
@@ -714,13 +714,12 @@
     endif
     unset _maildir
 
-    if (! $?MANPATH) then
-	if (-r /usr/share/man) then
-	    setenv MANPATH /usr/share/man:
-	else
-	    setenv MANPATH /usr/man:
-	endif
-    endif
+
+# changed from original file to allow to use all manpathes found
+# by the manpath utility, not only one path
+
+unsetenv MANPATH
+setenv MANPATH `manpath`
 
 	if ($?traditional_complete) then
     # use of $MANPATH from Dan Nicolaescu <dann@ics.uci.edu>

----------------------------------------------------------------------------

--- originale/tcshrc.alias	Wed Mar 15 10:44:28 2006
+++ angepasste/tcshrc.alias	Sun Oct 29 19:03:37 2006
@@ -21,7 +21,7 @@
 
 ## Standard aliases - convenience
 # Color syntax
-alias ls 	'ls --color'
+alias ls 	'ls -G'
 # Typicaly "more" does not allow you to use the arrow keys/etc for navigation.
 # Thus, we try to use "less", if it exists. Some distros do not put the
 # fileutils package and it is annoying if the alias exists without the app.
@@ -73,7 +73,7 @@
 alias maek  'make'
 alias alais 'alias'
 alias csl   'clear'
-alias sl    'ls --color'
+alias sl    'ls -G'
 
 ## Aliases specific to TCSH
 # What is the help command? Type "ls" and hit F1. Will show a help line.
@@ -127,3 +127,9 @@
 #alias clean 'rm -f  *~'
 # This is useful to translators checking .po files.
 alias msgcheck 'msgfmt -o /dev/null --statistics --strict --verbose'
+
+#Install  `most` from he ports or package for coloured manpages
+
+if ( -e `where most`) then
+	alias man 	'man -P most'
+endif
\ No newline at end of file




Patch attached with submission follows:

begin 644 tcshrc_diffs.tar
M=&-S:')C+F%L:6%S+F1I9F8`````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````#`P,#`V-#0`,#`P,#`P,``P,#`P,#`P`#`P,#`P,#`Q-S8Q
M`#$P-3(S,34W,S$R`#`Q,S$Q,0`@,```````````````````````````````
M````````````````````````````````````````````````````````````
M``````````````````````````````````````````!U<W1A<B`@`')O;W0`
M````````````````````````````````````=VAE96P`````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M```````````````````````M+2T@;W)I9VEN86QE+W1C<VAR8RYA;&EA<PE7
M960@36%R(#$U(#$P.C0T.C(X(#(P,#8**RLK(&%N9V5P87-S=&4O=&-S:')C
M+F%L:6%S"5-U;B!/8W0@,CD@,3DZ,#,Z,S<@,C`P-@I`0"`M,C$L-R`K,C$L
M-R!`0`H@"B`C(R!3=&%N9&%R9"!A;&EA<V5S("T@8V]N=F5N:65N8V4*(",@
M0V]L;W(@<WEN=&%X"BUA;&EA<R!L<R`))VQS("TM8V]L;W(G"BMA;&EA<R!L
M<R`))VQS("U')PH@(R!4>7!I8V%L>2`B;6]R92(@9&]E<R!N;W0@86QL;W<@
M>6]U('1O('5S92!T:&4@87)R;W<@:V5Y<R]E=&,@9F]R(&YA=FEG871I;VXN
M"B`C(%1H=7,L('=E('1R>2!T;R!U<V4@(FQE<W,B+"!I9B!I="!E>&ES=',N
M(%-O;64@9&ES=')O<R!D;R!N;W0@<'5T('1H90H@(R!F:6QE=71I;',@<&%C
M:V%G92!A;F0@:70@:7,@86YN;WEI;F<@:68@=&AE(&%L:6%S(&5X:7-T<R!W
M:71H;W5T('1H92!A<'`N"D!`("TW,RPW("LW,RPW($!`"B!A;&EA<R!M865K
M("`G;6%K92<*(&%L:6%S(&%L86ES("=A;&EA<R<*(&%L:6%S(&-S;"`@("=C
M;&5A<B<*+6%L:6%S('-L("`@("=L<R`M+6-O;&]R)PHK86QI87,@<VP@("`@
M)VQS("U')PH@"B`C(R!!;&EA<V5S('-P96-I9FEC('1O(%1#4T@*(",@5VAA
M="!I<R!T:&4@:&5L<"!C;VUM86YD/R!4>7!E(")L<R(@86YD(&AI="!&,2X@
M5VEL;"!S:&]W(&$@:&5L<"!L:6YE+@I`0"`M,3(W+#,@*S$R-RPY($!`"B`C
M86QI87,@8VQE86X@)W)M("UF("`J?B<*(",@5&AI<R!I<R!U<V5F=6P@=&\@
M=')A;G-L871O<G,@8VAE8VMI;F<@+G!O(&9I;&5S+@H@86QI87,@;7-G8VAE
M8VL@)VUS9V9M="`M;R`O9&5V+VYU;&P@+2US=&%T:7-T:6-S("TM<W1R:6-T
M("TM=F5R8F]S92<**PHK(TEN<W1A;&P@(&!M;W-T8"!F<F]M(&AE('!O<G1S
M(&]R('!A8VMA9V4@9F]R(&-O;&]U<F5D(&UA;G!A9V5S"BL**VEF("@@+64@
M8'=H97)E(&UO<W1@*2!T:&5N"BL)86QI87,@;6%N(`DG;6%N("U0(&UO<W0G
M"BME;F1I9@I<($YO(&YE=VQI;F4@870@96YD(&]F(&9I;&4*````````````
M````````=&-S:')C7V-O;F9I9RYD:69F````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````````````#`Q,#`V-#0`,#`P,#`P,``P,#`P,#`P`#`P,#`P
M,#`Q-C<R`#$P-3(S,3<Q,3$V`#`Q,S,T-@`@,```````````````````````
M````````````````````````````````````````````````````````````
M``````````````````````````````````````````````````!U<W1A<B`@
M`')O;W0`````````````````````````````````````=VAE96P`````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M```````````````````````````````M+2T@;W)I9VEN86QE+W1C<VAR8U]C
M;VYF:6<)5V5D($UA<B`Q-2`Q,#HT-#HR.2`R,#`V"BLK*R!A;F=E<&%S<W1E
M+W1C<VAR8U]C;VYF:6<)4W5N($]C="`R.2`Q.#HP,#HR-R`R,#`V"D!`("TS
M-BPW("LS-BPW($!`"B`)4UE35$5-/7D*(`D[.PH@("`@("UV?"TM=F5R8F]S
M92D*+0E615)"3U-%/2TM=F5R8F]S90HK"59%4D)/4T4]+78*(`D[.PH@("`@
M("TJ*0H@"75S86=E"D!`("TV,BPW("LV,BPQ."!`0`H@"2]B:6XO8W`@+68@
M)'M615)"3U-%?2`D>U-/55)#17TO=&-S:')C+G-E="`))'M(3TU%?2\N=&-S
M:')C+G-E=`H@"2]B:6XO8W`@+68@)'M615)"3U-%?2`D>U-/55)#17TO=&-S
M:')C+F%L:6%S(`DD>TA/345]+RYT8W-H<F,N86QI87,*(`DO8FEN+V-P("UF
M("1[5D520D]317T@)'M33U520T5]+W1C<VAR8RYH;W-T<R`))'M(3TU%?2\N
M=&-S:')C+FAO<W1S"BT)+V)I;B]C<"`M=2`D>U9%4D)/4T5]("1[4T]54D-%
M?2]T8W-H<F,N;&]C86P@"21[2$]-17TO+G1C<VAR8RYL;V-A;`HK"0HK"6EF
M(%L@(F!U;F%M96`B("$]("),:6YU>"(@72`[('1H96X**PD@("`@:68@6R`M
M92`B)'M(3TU%?2\N=&-S:')C+FQO8V%L(B!=(#L@=&AE;@HK"0DO8FEN+V-P
M("UF("1[5D520D]317T@)'M(3TU%?2\N=&-S:')C+FQO8V%L("1[2$]-17TO
M+G1C<VAR8RYL;V-A;"YO;&0**PD)+V)I;B]C<"`M9B`D>U9%4D)/4T5]("1[
M4T]54D-%?2]T8W-H<F,N;&]C86P@"21[2$]-17TO+G1C<VAR8RYL;V-A;`D)
M"BL)"BL)("`@(&5L<V4@+V)I;B]C<"`M9B`D>U9%4D)/4T5]("1[4T]54D-%
M?2]T8W-H<F,N;&]C86P@"21[2$]-17TO+G1C<VAR8RYL;V-A;`HK"0EF:0HK
M"2`@("!E;'-E("]B:6XO8W`@+74@)'M615)"3U-%?2`D>U-/55)#17TO=&-S
M:')C+FQO8V%L(`DD>TA/345]+RYT8W-H<F,N;&]C86P**PD)"BL)9FD**PH@
M"65C:&\@(B!D;VYE+B(@/B8R"B`)97AI="`P"B!F:0H`````````````````
M````````````````````````````````````````````````````````````
M````````````````=&-S:')C+F-O;7!L971E+F1I9F8`````````````````
M````````````````````````````````````````````````````````````
M`````````````````````````````#`Q,#`V-#0`,#`P,#`P,``P,#`P,#`P
M`#`P,#`P,#`Q,#<W`#$P-3(S,3<Q,S<Q`#`Q,S8S,@`@,```````````````
M````````````````````````````````````````````````````````````
M``````````````````````````````````````````````````````````!U
M<W1A<B`@`')O;W0`````````````````````````````````````=VAE96P`
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M```````````````````````````````````````M+2T@;W)I9VEN86QE+W1C
M<VAR8RYC;VUP;&5T90E7960@36%R(#$U(#$P.C0T.C(X(#(P,#8**RLK(&%N
M9V5P87-S=&4O=&-S:')C+F-O;7!L971E"5-A="!.;W8@(#0@,C`Z,SDZ-3@@
M,C`P-@I`0"`M-S$T+#$S("LW,30L,3(@0$`*("`@("!E;F1I9@H@("`@('5N
M<V5T(%]M86EL9&ER"B`*+2`@("!I9B`H(2`D/TU!3E!!5$@I('1H96X*+0EI
M9B`H+7(@+W5S<B]S:&%R92]M86XI('1H96X*+0D@("`@<V5T96YV($U!3E!!
M5$@@+W5S<B]S:&%R92]M86XZ"BT)96QS90HM"2`@("!S971E;G8@34%.4$%4
M2"`O=7-R+VUA;CH*+0EE;F1I9@HM("`@(&5N9&EF"BL**R,@8VAA;F=E9"!F
M<F]M(&]R:6=I;F%L(&9I;&4@=&\@86QL;W<@=&\@=7-E(&%L;"!M86YP871H
M97,@9F]U;F0**R,@8GD@=&AE(&UA;G!A=&@@=71I;&ET>2P@;F]T(&]N;'D@
M;VYE('!A=&@**PHK=6YS971E;G8@34%.4$%42`HK<V5T96YV($U!3E!!5$@@
M8&UA;G!A=&A@"B`*(`EI9B`H)#]T<F%D:71I;VYA;%]C;VUP;&5T92D@=&AE
M;@H@("`@(",@=7-E(&]F("1-04Y0051((&9R;VT@1&%N($YI8V]L865S8W4@
M/&1A;FY`:6-S+G5C:2YE9'4^"@``````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
9````````````````````````````````````
`
end

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611042036.kA4Kam0x026096>