Function: comint-substitute-in-file-name

Return FILENAME with environment variables substituted.
Supports additional environment variable syntax of the command
interpreter (e.g., the percent notation of cmd.exe on Windows).

(fn FILENAME)