From a6e9196724be781a580d19805cddb9548029c665 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Thu, 3 Feb 2022 17:07:53 -0500 Subject: [PATCH] config.d: Clarify _curlrc filename is still valid on Windows Recent changes added support for filename .curlrc on Windows, and when it's not found curl falls back on the original Windows filename _curlrc. _curlrc was removed from the doc, however it is still valid. Closes https://github.com/curl/curl/pull/8382 --- docs/cmdline-opts/config.d | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/cmdline-opts/config.d b/docs/cmdline-opts/config.d index b24a87e1cf..96bb81ac3e 100644 --- a/docs/cmdline-opts/config.d +++ b/docs/cmdline-opts/config.d @@ -64,9 +64,12 @@ config file is checked for in the following places in this order: 6) Windows: "%USERPROFILE%\\Application Data\\.curlrc" -7) Non-windows: use getpwuid to find the home directory +7) Non-Windows: use getpwuid to find the home directory -8) On windows, if it finds no .curlrc file in the sequence described above, it +8) On Windows, if it finds no .curlrc file in the sequence described above, it checks for one in the same dir the curl executable is placed. +On Windows two filenames are checked per location: .curlrc and _curlrc, +preferring the former. Older versions on Windows checked for _curlrc only. + This option can be used multiple times to load multiple config files.