diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2011-12-12 00:22:09 +0200 |
|---|---|---|
| committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-12-12 00:22:09 +0200 |
| commit | 260e2a1eeb7892daacea5294b9e3f5beb9054f60 (patch) | |
| tree | 66db6edec76f113cf3d26d58c83b3169737b37e1 /bash_completion | |
| parent | 723b0771ad200ef8f22e1d3fcd3ae5d392a69a27 (diff) | |
| download | bash-completion-260e2a1eeb7892daacea5294b9e3f5beb9054f60.tar.gz | |
quote: Preserve leading, trailing, and consecutive whitespace.
Diffstat (limited to 'bash_completion')
| -rw-r--r-- | bash_completion | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bash_completion b/bash_completion index 0eecb158..ebebb8e0 100644 --- a/bash_completion +++ b/bash_completion @@ -142,7 +142,8 @@ _rl_enabled() # This function shell-quotes the argument quote() { - echo \'${1//\'/\'\\\'\'}\' #'# Help vim syntax highlighting + local quoted=${1//\'/\'\\\'\'} + printf "'%s'" "$quoted" } # @see _quote_readline_by_ref() |
