Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

!# expansion in csh ( a puzzle )

6 views
Skip to first unread message

Tim Smith

unread,
Apr 30, 1984, 3:31:06 PM4/30/84
to
/**/

Let "count" be a program that prints argc.
Let your shell be csh.

What would you expect from the following commands?

count
count !#
count !# !#
count !# !# !#
count !# !# !# !#
( you get the idea )

Hint: you will not get 1,2,4,8,16,...

I think I know why this happens. Is this a bug or a feature ( or a misuse
of !# ) ?

Tim Smith
{decvax,ucbvax}!ihnp4!sdcrdcf!trwrb!wlbr!callan!tim
{decvax,ucbvax,ihnp4,trwrb}!cithep!tim

0 new messages