Is there a way to programatically detect if the currently installed wget supports a given feature, for example, IRI support?
I’m asking because I’d like to add these lines to my .wgetrc:
# Use UTF-8 as the default system encoding
local_encoding = UTF-8
But this makes wget unusable if it doesn’t support the local_encoding setting.
So, I’d like to conditionally configure this setting, only if wget supports the feature.
In Vim (.vimrc files) you can do this using has() and exists():
if has("autocmd")
" Define autocommands here
endif
How can I do something similar for wget in .wgetrc?