Skip to content

docs: fix pretty printing nginx configure arguments - #2429

Open
fmalina wants to merge 1 commit into
nginx:mainfrom
fmalina:patch-1
Open

fmalina wants to merge 1 commit into
nginx:mainfrom
fmalina:patch-1

Conversation

@fmalina

@fmalina fmalina commented Oct 24, 2026

Copy link
Copy Markdown

Proposed changes

Update the command to use sed for extracting the configuration from the output of 'nginx -V' instead of awk. Awk version breaks on colons leading to unmatched quotes.

$ nginx -V 2>&1 | awk -F: '/configure arguments/ {print $2}' | xargs -n1 xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option --with-cc-opt=-g...

Sed version works with same intended output. Tested on Debian.

Checklist

Before sharing this pull request, I completed the following checklist:

Footnotes

  1. Potentially sensitive information includes personally identify information (PII), authentication credentials, and live URLs. Refer to the style guide for guidance about placeholder content. ↩

Updated the command to use sed for extracting the configuration from the output of 'nginx -V' instead of awk.
Awk version breaks on colons leading to unmatched quotes.
'''
$ nginx -V 2>&1 | awk -F: '/configure arguments/ {print $2}' | xargs -n1
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option
--with-cc-opt=-g...
'''
Tested on Debian
@fmalina
fmalina requested a review from a team as a code owner October 24, 2026 08:03
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

✅ All required contributors have signed the F5 CLA for this PR. Thank you!
Posted by the CLA Assistant Lite bot.

@github-actions github-actions Bot added documentation Improvements or additions to documentation product/nginx-plus Issues related to NGINX Plus (and NGINX Open Source in docs.nginx.com) labels Oct 24, 2026
@fmalina

fmalina commented Oct 24, 2026

Copy link
Copy Markdown
Author

I have hereby read the F5 CLA and agree to its terms

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

Labels

documentation Improvements or additions to documentation product/nginx-plus Issues related to NGINX Plus (and NGINX Open Source in docs.nginx.com)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant