From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <200910051820.ab25950@salmon.maths.tcd.ie> References: <20091003160327.GA15021@nipl.net> <7359f0490910031001s3354e29awfb916f953bb96ec@mail.gmail.com> <20091003183127.GC15021@nipl.net> <200910051708.aa33544@salmon.maths.tcd.ie> <7980ce1ef1a3d761e56c7ef111341699@coraid.com> <200910051820.ab25950@salmon.maths.tcd.ie> Date: Mon, 5 Oct 2009 20:09:45 +0100 Message-ID: From: roger peppe To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] mishandling empty lists - let's fix it Topicbox-Message-UUID: 7f31a4d6-ead5-11e9-9d60-3106f5b1d025 2009/10/5 John Stalker : > But you can use regular expressions instead of goofy shell > matching. =C2=A0Find and ls give you lists of file names and grep > prunes them for you. =C2=A0Shell command substitution then puts > them in the right place in the command, or use xargs when > appropriate. =C2=A0I don't claim that globbing is a horrible evil, > merely that it is an unnecessary evil. dodgy in unix where filenames can contain \n. under plan 9 you have to remember to set ifs to \n only, which is awkward and error prone. this stuff is better designed for interactive use than scripting, but it still does an adequate job provided you remember the pitfalls. rc is loads better like that than shells with trad semantics. i like the way i can parse quoted names in the inferno shell. various p9 utils have been outfitted to print quoted names but they're only useful interactively without support from rc.