s/// replacement: implement the \U \L \u \l \E case-conversion escapes
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
Research direction
Start by running the replacement examples from the issue and locate uutils sed's replacement-text handling for s///. Implement support for \U, \L, \u, \l, and \E according to the GNU sed 4.9 results shown, then verify that all five examples produce the expected output.
Written by the indexing model from the issue text.
Description
GNU sed supports case-conversion escapes in the replacement text of s///. None of them work in uutils sed today.
$ echo "abc def" | sed 's/b\(.*\)/\U&/'
| script | uutils sed | GNU sed 4.9 |
|---|---|---|
s/b\(.*\)/\U&/ |
aUbc def |
aBC DEF |
s/b\(.*\)/\u&/ |
aubc def |
aBc def |
s/b\(.*\)/\L&/ |
a\Lbc def |
abc def |
s/b\(.*\)/\l&/ |
a\lbc def |
abc def |
s/b\(.*\)/\E&/ |
a\Ebc def |
abc def |
- Dominant language
- Rust
- Stars
- 110
- Forks
- 36
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 30
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from uutils/sed
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
l command: the wrap width comes from the terminal size, and -l is ignoredPossibly taken @SichenLiang claimed this 41 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Back-references are rejected in byte (C locale) modePossibly taken @Omkar-Wagholikar claimed this 5 days ago. Opengood first issue
Difficulty 4/5 3-5 days Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
--posix should disable the GNU regular expression escapes (\? \+ \| \w \s)Possibly taken @LoukasPap claimed this 43 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
fritzprix/libr-agent#2165 ·
Maintainers usually reply within 1 day
-
area:ecosystem bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Chelis-Lang/chelis#3942 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Maintainers usually reply within 1 day
-
review-bot
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
Maintainers usually reply within 1 day