Skip to content

New -n flag for string join.#8774

Merged
faho merged 10 commits into
fish-shell:masterfrom
joao-vitor-sr:master
Mar 13, 2022
Merged

New -n flag for string join.#8774
faho merged 10 commits into
fish-shell:masterfrom
joao-vitor-sr:master

Conversation

@joao-vitor-sr
Copy link
Copy Markdown
Contributor

@joao-vitor-sr joao-vitor-sr commented Mar 9, 2022

This flag jumps the delimiter for empty items.

This is an argument that excludes empty result items. Fixes fish-shell#8351
The new argument --no-empty was added at string-join manpage.
The reason to remove this new argument in the join0 is that this flag basically doesn't make any difference in the join0.
@faho faho added this to the fish-future milestone Mar 10, 2022
@faho
Copy link
Copy Markdown
Member

faho commented Mar 10, 2022

Fixes #8351

@faho faho linked an issue Mar 10, 2022 that may be closed by this pull request
Comment thread src/builtins/string.cpp Outdated
@faho
Copy link
Copy Markdown
Member

faho commented Mar 10, 2022

Seems okay to me, I'll wait with merging until after 3.4.0 is out (which we're hoping to get done soon).

The string join command was using the length of the argument, this commit changes the validation to use the empty function.
The reason for the revert is thath the build broke on the ubuntu in the Github actions.
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.
commit #1242d0fd7 not fixed all conflicts.
@faho faho modified the milestones: fish-future, fish 3.5.0 Mar 13, 2022
@faho faho merged commit 4ae4ea0 into fish-shell:master Mar 13, 2022
@faho
Copy link
Copy Markdown
Member

faho commented Mar 13, 2022

Merged, thanks!

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggestion: -n flag for string join mirroring string split

2 participants