Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New -n flag for string join. #8774

Merged
merged 10 commits into from
Mar 13, 2022
Merged

New -n flag for string join. #8774

merged 10 commits into from
Mar 13, 2022

Conversation

joao-vitor-sr
Copy link
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
Member

faho commented Mar 10, 2022

Fixes #8351

@faho faho linked an issue Mar 10, 2022 that may be closed by this pull request
src/builtins/string.cpp Outdated Show resolved Hide resolved
@faho
Copy link
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
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