I'm getting unexpected completion suggestions in shell mode using company. For instance: 
I have no idea why it's suggesting random DLL filenames here. This is in Linux Emacs built from master of 2022-01-18, on Ubuntu 20.04 in WSL (Windows 11).
I pared my .emacs down to this (I omitted the usual straight.el setup code):
(use-package company :bind (("M-RET" . company-complete)) :demand :config (global-company-mode) (setq company-backends '(company-capf)) ) I'm not sure how to go about debugging this. The problem is not in company; I think it's that completion-at-point-function is returning these DLL names rather than anything useful (such as "then", in this case). Where should I look to start debugging this?
.dllfiles are in a directory on the command search path. However,.dllfiles should probably not be considered executable — on Windows, there should be a filter by extension.sh-completion-at-point-functionlives inside core Emacs, so your best bet to see it improve would beM-x report-emacs-bug.