• Alvaro Herrera's avatar
    psql: when tab-completing, use quotes on file names that need them · 41e3c94c
    Alvaro Herrera authored
    psql backslash commands that deal with file or directory names require
    quotes around those that have spaces, single quotes, or backslashes.
    However, tab-completing such names does not provide said quotes, and is
    thus almost useless with them.
    
    This patch fixes the problem by having a wrapper function around
    rl_filename_completion_function that dequotes on input and quotes on
    output.  This eases dealing with such names.
    
    Author: Noah Misch
    41e3c94c
stringutils.c 7.69 KB