From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 20 Dec 2013 09:25:15 -0500 To: 9fans@9fans.net Message-ID: <93d28729bf9d087ec0fe92e31500ed39@brasstown.quanstro.net> In-Reply-To: <52b450b5.5jJHH5Wi3lSMdJj+%trebol55555@aol.com> References: <52b450b5.5jJHH5Wi3lSMdJj+%trebol55555@aol.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] rc and spaces in file names Topicbox-Message-UUID: a30b57d2-ead8-11e9-9d60-3106f5b1d025 > I tried typing a literal newline in the ifs variable and it works: > > term% ifs=' > ' for(i in Plan*){cp $i `{echo $i | sed 's/lan/LAN/'}} > term% ls P* > 'PLAN 9' > 'PLAN B' > 'Plan 9' > 'Plan B' > > With p9p is the same. I'll appreciate If anyone can tell me why. > i'm not sure which question you have. i'll try to answer the two i see. '\n' doesn't work because rc doesn't interpret \ except as the last character of a line. plan 9 ls helpfully quotes file names that might need quoting if fed to rc. ls -Q will get rid of the quotes. (see ls(1).) so the file names do not include the single quotes. if they did, you'd see '''Plan B'''. - erik