Skip to content

Conversation

jnavila
Copy link

@jnavila jnavila commented Jun 2, 2025

The OpenBSD 'sed' command does not support '\n' to represent newlines in sed expressions. This leads to the follow compiler error:

In file included from builtin/help.c:15:
./config-list.h:282:18: error: use of undeclared identifier 'n'
        "gitcvs.dbUser",n       "gitcvs.dbPass",
                        ^
1 error generated.
gmake: *** [Makefile:2821: builtin/help.o] Error 1

We can use a backslash followed by a newline to fix this.

This portably issue was introduced in e1b81f5 (completion: take into account the formatting backticks for options, 2025-03-19)

The OpenBSD 'sed' command does not support '\n' to represent newlines in
sed expressions. This leads to the follow compiler error:

    In file included from builtin/help.c:15:
    ./config-list.h:282:18: error: use of undeclared identifier 'n'
            "gitcvs.dbUser",n       "gitcvs.dbPass",
                            ^
    1 error generated.
    gmake: *** [Makefile:2821: builtin/help.o] Error 1

We can use a backslash followed by a newline to fix this.

This portably issue was introduced in e1b81f5 (completion: take into
account the formatting backticks for options, 2025-03-19)

Signed-off-by: Collin Funk <[email protected]>
Copy link

gitgitgadget bot commented Jun 2, 2025

There are issues in commit c3f0017:
completion: Make sed command that generates config-list.h portable.
Prefixed commit message must be in lower case

@jnavila jnavila closed this Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants