]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
scripts: pass `--` before passing xargs
authorViktor Szakats <commit@vsz.me>
Wed, 15 Oct 2025 17:45:48 +0000 (19:45 +0200)
committerViktor Szakats <commit@vsz.me>
Thu, 16 Oct 2025 18:45:28 +0000 (20:45 +0200)
Also:
- GHA/checkdocs: escape `.` in -E regex expression.

Closes #19076

.github/workflows/appveyor-status.yml
.github/workflows/checkdocs.yml
scripts/cmakelint.sh
scripts/firefox-db2pem.sh
scripts/perlcheck.sh

index 5269f3ca65b97ffbdbe7cc6c3c8576bcee4630d3..48e11b0e3d3cff24cb81906c78683a0bd6cffa55 100644 (file)
@@ -29,7 +29,7 @@ jobs:
           APPVEYOR_REPOSITORY: ${{ github.event.repository.full_name }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
-          echo "${APPVEYOR_TARGET_URL}" | sed 's/\/project\//\/api\/projects\//' | xargs -t -n1 curl -s | \
+          echo "${APPVEYOR_TARGET_URL}" | sed 's/\/project\//\/api\/projects\//' | xargs -t -n1 curl -s -- | \
             jq -c '.build.jobs[] | {target_url: ($target_url + "/job/" + .jobId),
                                     context: (.name | sub("^(Environment: )?"; "AppVeyor / ")),
                                     state: (.status | sub("queued"; "pending")
index 91ed7452d19c09566da5373ed0e661c06a4dc32e..58f5f29f8b4cf4321782770fa0303d5927083a85 100644 (file)
@@ -69,7 +69,7 @@ jobs:
   #        run: git ls-files -z '*.md' | xargs -0 -n1 .github/scripts/trimmarkdownheader.pl
   #
   #      - name: 'check prose'
-  #        run: git ls-files -z '*.md' | grep -Evz 'CHECKSRC.md|DISTROS.md|curl_mprintf.md|CURLOPT_INTERFACE.md|interface.md' | xargs -0 proselint README
+  #        run: git ls-files -z '*.md' | grep -Evz 'CHECKSRC\.md|DISTROS\.md|curl_mprintf\.md|CURLOPT_INTERFACE\.md|interface\.md' | xargs -0 proselint -- README
   #
   #      # This is for CHECKSRC and files with aggressive exclamation mark needs
   #      - name: 'create second proselint config'
index 788f0873055b6bcbd575a53cd6f33d0d15629626..9462081f218baf05033ad846dc9cc69231aaf478 100755 (executable)
@@ -77,4 +77,5 @@ cd "$(dirname "$0")"/..
     --max-branches 12 \
     --max-arguments 5 \
     --max-localvars 15 \
-    --max-statements 50
+    --max-statements 50 \
+    --
index 2a4b9ceace16c263a0ba6e4be6d14bd474d74e93..c774ab9107c1185f5f420e6842dc13de1f8f6b25 100755 (executable)
@@ -57,5 +57,5 @@ sed -e 's/ *[CcGTPpu]*,[CcGTPpu]*,[CcGTPpu]* *$//' -e 's/\(.*\)/"\1"/' | \
 sort | \
 while read -r nickname; \
  do echo "$nickname" | sed -e "s/Builtin Object Token://g"; \
- echo "$nickname" | xargs -I{} certutil -d "$db" -L -a -n {} ; \
+ echo "$nickname" | xargs -I{} certutil -d "$db" -L -a -n -- {} ; \
 done >> "$out"
index 7de0f6dbb559eaa0041660cc9b04504633afc343..7ec23983d5e6fc215ea09c448fecbfdc59ffa052 100755 (executable)
@@ -48,4 +48,4 @@ echo "parallel: ${procs}"
     # strip off the leading ./ to make the grep regexes work properly
     find . -type f \( -name '*.pl' -o -name '*.pm' \) | sed 's@^\./@@'
   fi
-} | xargs -n 1 -P "${procs}" perl -c -Itests
+} | xargs -n 1 -P "${procs}" perl -c -Itests --