Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!sun!shukra!ram From: ram%shukra@Sun.COM (Renu Raman, Sun Microsystems) Newsgroups: comp.unix.questions Subject: Re: \"+\" filename -> /bin/sh ! Message-ID: <31227@sun.uucp> Date: Mon, 19-Oct-87 13:27:32 EDT Article-I.D.: sun.31227 Posted: Mon Oct 19 13:27:32 1987 Date-Received: Tue, 20-Oct-87 20:46:25 EDT References: <9844@brl-adm.ARPA> <3351@sol.ARPA> Sender: news@sun.uucp Lines: 27 Summary: Try '-' and ... In article <3351@sol.ARPA>, ken@cs.rochester.edu (Ken Yap) writes: > Since + is a non-binary, you are effectively doing /bin/sh +. Try > this: > > /bin/sh + > > and get an interactive sh. In fact any argument starting with + > will get you the same result. > > My guess is that sh discards arguments starting with + so effectively > you are doing just /bin/sh. This is on SunOS 3.4. > > Ken Following Ken's suggestion, try "cat > -;...." - same result (i.e. a new shell). Also, try "vi +" and "vi -" as well as "emacs +" and "emacs -" (once you have cretae dthe + & - files). Wish we have qizzes/trivia like this more often. Maybe a comp.unix.quiz? --------------------- Renu Raman ARPA:ram@sun.com Sun Microsystems UUCP:{ucbvax,seismo,hplabs}!sun!ram M/S 5-40, 2500 Garcia Avenue, Mt. View, CA 94043