> 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

Reply via email to