: t modifier in tcsh and csh

Jamie Mason jmason2 at gpu.utcs.utoronto.ca
Thu Jun 13 12:50:10 AEST 1991


In article <1991Jun12.204347.2932 at engage.pko.dec.com> wallace at ynotme.enet.dec.com (Ray Wallace) writes:
>
>In csh you can not use the : modifiers on the positional variables. You will
>need to assign $0 to another variable and then use :t on that new variable.

	Actually, you *can* use the : modifiers on positional varaibles.
Just not on $0.  This is a bug, and an obnoxioius one at that.  (Since $0 
tends to inculde a full path from the sematics of '#!', and so tends to
be the positional parameter you are *most* likely to want to ':t'.

Jamie  ...  Segmentation fault (core dumped)
Written On  Wednesday, June 12, 1991  at  10:46:09pm EDT



More information about the Comp.unix.shell mailing list