rc icon indicating copy to clipboard operation
rc copied to clipboard

Should ifs split by strings?

Open Nomarian opened this issue 5 years ago • 2 comments

This is more of a feature request and would maybe break behaviour but considering ifs is a list, it should probably behave in a manner of ifs=($nl^$nl $ifs(1)) that is, split by 2 newline characters (a string) and because its a list to also split by all other elements in the ifs list

Nomarian avatar Mar 03 '19 19:03 Nomarian

That would make sense (and would also work around the fact that this rc doesn't support multi-byte characters), but that would break backward compatibility. I suppose some existing scripts use things like ifs = ',: '.

stephane-chazelas avatar Jun 09 '19 12:06 stephane-chazelas

well, brc already has `` $IFS {} and $^, which is unsupported in 9rc.

Nomarian avatar Jun 10 '19 18:06 Nomarian

I think we should definitely not change the behaviour of $ifs. What's your opinion on this, @rakitzis?

xyb3rt avatar Jun 12 '23 10:06 xyb3rt

I'll close this. Let's leave ifs alone.

rakitzis avatar Jun 12 '23 13:06 rakitzis