You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a flag -n/--no-empty for string split that excludes empty result items.
There should be an analogous flag for string join that does not add the delimiter next to an empty item.
~$ string join -n + a b "" c
string join + a b "" c
a+b+c
a+b++c
~$ read x; for o in {-n,}
string join $o -- - a $x (string sub -s 3 $x) b
end
read> iy
a-iy--b
a-iy-b
The text was updated successfully, but these errors were encountered:
* New -n flag for string join command.
This is an argument that excludes empty result items. Fixes#8351
* New documentation for string-join.
The new argument --no-empty was added at string-join manpage.
* New completions for the new -n flag for string join.
* Remove the documentation of the new -n flag of string join0
The reason to remove this new argument in the join0 is that this flag basically doesn't make any difference in the join0.
* Refactor the validation for the string join.
The string join command was using the length of the argument, this commit changes the validation to use the empty function.
* Revert #4b56ab452
The reason for the revert is thath the build broke on the ubuntu in the Github actions.
* Revert #e72e239a1
The reason the compilation on GitHub broke is that the test was weird, it didn't even run it, Common CI systems are typically very very resource-constrained.
* Resolve conflicts in the string-join.rst.
* Resolve conflicts in the "string-join.rst".
commit #1242d0fd7 not fixed all conflicts.
There is a flag
-n
/--no-empty
forstring split
that excludes empty result items.There should be an analogous flag for
string join
that does not add the delimiter next to an empty item.The text was updated successfully, but these errors were encountered: