Skip to content

Conversation

@LangLangBart
Copy link
Contributor

docs(man): Add example for {+f} in preview command

Provide an example for having multiple selected items be seperated by newlines,
as the question comes up from time to time.

References:


docs(man): replace echo -e with printf to improve portability across different shells

echo -e behaves inconsistently across different shells.

References:

For example:
/bin/sh -c 'echo -e 1' -> -e 1
/bin/dash -c 'echo -e 2' -> -e 2
/bin/bash -c 'echo -e 3' -> 3

While POSIX 2024 added text regarding -e support, it does not guarantee
consistent behavior across different shells. printf is the recommended
portable alternative for formatted output and escape sequences.

References:

@junegunn junegunn added the doc label Dec 1, 2025
@junegunn junegunn merged commit fcc4178 into junegunn:master Dec 2, 2025
5 checks passed
@junegunn
Copy link
Owner

junegunn commented Dec 2, 2025

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants