Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site callan.UUCP Path: utzoo!watmath!clyde!burl!ulysses!harpo!seismo!hao!hplabs!intelca!proper!callan!tim From: tim@callan.UUCP (Tim Smith) Newsgroups: net.unix-wizards Subject: !# expansion in csh ( a puzzle ) Message-ID: <149@callan.UUCP> Date: Mon, 30-Apr-84 15:31:06 EDT Article-I.D.: callan.149 Posted: Mon Apr 30 15:31:06 1984 Date-Received: Fri, 4-May-84 01:25:58 EDT Organization: Callan Data Systems, Westlake Village, CA Lines: 22 /**/ 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