From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tristan <9p-st@imu.li> To: 9fans@9fans.net In-Reply-To: <52b450b5.5jJHH5Wi3lSMdJj+%trebol55555@aol.com> References: <52b450b5.5jJHH5Wi3lSMdJj+%trebol55555@aol.com> Message-Id: <257c47.19da62f2.Uf8U.mx@tumtum.plumbweb.net> Date: Fri, 20 Dec 2013 09:25:25 -0500 User-Agent: mx Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] rc and spaces in file names Topicbox-Message-UUID: a3102834-ead8-11e9-9d60-3106f5b1d025 > term% ifs=3D'\n' for(i in Plan*){cp $i `{echo $i | sed 's/lan/LAN/'}} > cp: can't create PLAN 9 > : bad character in file name: 'PLAN 9 > ' > cp: can't create PLAN B > : bad character in file name: 'PLAN B > ' > ' > So the last newline character is added to the file name... > I tried typing a literal newline in the ifs variable and it works: > term% ifs=3D' > ' 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. rc doesn't do backslash escapes. tristan --=20 All original matter is hereby placed immediately under the public domain.