Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

stringutils.c

  • Alvaro Herrera's avatar
    41e3c94c
    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
    History
    psql: when tab-completing, use quotes on file names that need them
    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