From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <94ec8e21ec12b4dc3ae41b46df9420b8@vitanuova.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] multiple inputs From: rog@vitanuova.com In-Reply-To: <4623606e74a91925b510cd480e7738da@cwru.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 1 Apr 2004 20:47:56 +0100 Topicbox-Message-UUID: 4d4c176a-eacd-11e9-9e20-41e7f4b1d025 > a way to make the shell less dangerous when it expands metacharacters it's easy... don't use eval! (i've written loads of rc scripts and i don't think i've ever used eval). if you really wanted to use eval in a safe way, you'd need some support for quoting; for instance: % quote a 'b c' d a 'b c' d % but it'd be awkward to use this in rc due to the `{} $ifs splitting. i made this kind of thing easier to do in the inferno shell, but i'm still not that convinced - it's very easy to build up inpenetrable layers.