Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!steinmetz!davidsen From: davidsen@steinmetz.steinmetz.UUCP (William E. Davidsen Jr) Newsgroups: comp.unix.questions Subject: Re: Trick question Message-ID: <7665@steinmetz.steinmetz.UUCP> Date: Tue, 20-Oct-87 11:07:37 EDT Article-I.D.: steinmet.7665 Posted: Tue Oct 20 11:07:37 1987 Date-Received: Wed, 21-Oct-87 23:45:41 EDT References: <666@portofix.liu.se> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 22 In article <666@portofix.liu.se> kjepo@portofix.liu.se (Kjell Post) writes: |A little trick question for you all: what's happening here? ================ stuff ================ | % cat > + | date | ^D | % chmod +x + | % + | $ -- entered Bourne-shell I have only been able to get this to happen on SysV systems with csh. Moreover it works as expected if I use "./+" instead. The problem appears to be due to the csh stripping the + as an option somehow. When it sees the leading + it identifies the file as a command file, starts to setup an exec call, then treats the + as an option rather than a filename and strips it. Now I have a question: why are you doing this? -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs | seismo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me