Skip to content
Myr

Merge pull request #256 from sttts/sttts-fix-bash-escaping

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix escaping of % in bash code strings

authored by Eric Paris · committed by Eric Paris · parents 966e604, a23d903 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:bash_completions.go+1 added-1 removed
20 unmodified lines
21 _, err := fmt.Fprintf(out, "# bash completion for %-36s -*- shell-script -*-\n", name)22 if err != nil {23 return err24 }25 _, err = fmt.Fprintf(out, `25 _, err = fmt.Fprint(out, `26__debug()27{28 if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then29 echo "$*" >> "${BASH_COMP_DEBUG_FILE}"
551 unmodified lines