From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from techfac.techfak.uni-bielefeld.de ([129.70.1.2]) by archone.tamu.edu with SMTP id <22537>; Mon, 19 Aug 1991 09:08:45 -0500 Received: from dahlie.TechFak.Uni-Bielefeld.DE by techfac.techfak.uni-bielefeld.de (5.65+bind 1.7+ida 1.4.2/tp.29.0890) id AA27816; Mon, 19 Aug 91 13:22:36 +0200 Received: by dahlie.techfak.uni-bielefeld.de (4.1/tp.29.0890) id AA01307; Mon, 19 Aug 91 13:22:33 +0200 Date: Mon, 19 Aug 1991 06:22:33 -0500 From: malte@techfak.uni-bielefeld.de Message-Id: <9108191122.AA01307@dahlie.techfak.uni-bielefeld.de> To: rc@archone.tamu.edu Subject: Bug or feature? I was just playing around with rc (1.1gamma) and discovered this (strange?) behaviour: 1) If I define a function fn like "fn fn { printenv | grep '^fn_' }" the output is always nothing and it is impossible to define a new function, because fn now has a different meaning. Bug or feature? 2) Why doesn't this work: fn prompt { if(~ ($status) 1 2 3){ prompt=('err ' '>> ') } else prompt=('ok ' '>> ')} I want the prompt to show "err " if the last command returned 1,2 or 3, else "ok ".