Skip to content

sd returns exit code 0, even when there's no match #157

Description

@iiiraq

When sd doesn't match an input, it should not return with exit code 0 this will cause issues when scripting.

echo 'target' | sd 'miss' 'hit' && echo $?
target
0

Metadata

Metadata

Labels

A-CLIArea: CLI, completions, exit codes oh myC-enhancementCategory: New feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions