summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-06-21 19:00:41 +0100
committerMaxime Coste <frrrwww@gmail.com>2016-06-21 19:00:41 +0100
commit796a2ad63d29753cb3bf7f9803eaf1e5cd98966e (patch)
treeab7afddb89388abdb73b31780bbded7b930a1593
parentb77eff1b72929912c3fbac12704f26996ba06641 (diff)
Remove useless and non posix -e switch to awk invocations in rc scripts
Fixes #705
-rw-r--r--rc/base/ctags.kak2
-rw-r--r--rc/extra/clang.kak2
-rw-r--r--rc/extra/git-tools.kak4
3 files changed, 4 insertions, 4 deletions
diff --git a/rc/base/ctags.kak b/rc/base/ctags.kak
index cc78af74..11ebe082 100644
--- a/rc/base/ctags.kak
+++ b/rc/base/ctags.kak
@@ -16,7 +16,7 @@ def -params 0..1 \
export tagname=${1:-${kak_selection}}
for tags in $(printf %s\\n "${kak_opt_ctagsfiles}" | tr ':' '\n'); do
export tagroot="$(readlink -f $(dirname "$tags"))/"
- readtags -t "${tags}" ${tagname} | awk -F '\t|\n' -e '
+ readtags -t "${tags}" ${tagname} | awk -F '\t|\n' '
/[^\t]+\t[^\t]+\t\/\^.*\$?\// {
re=$0;
sub(".*\t/\\^", "", re); sub("\\$?/$", "", re); gsub("(\\{|\\}|\\\\E).*$", "", re);
diff --git a/rc/extra/clang.kak b/rc/extra/clang.kak
index 6aeeecd9..ef540ca8 100644
--- a/rc/extra/clang.kak
+++ b/rc/extra/clang.kak
@@ -42,7 +42,7 @@ def clang-parse -params 0..1 -docstring "Parse the contents of the current buffe
header="${kak_cursor_line}.${kak_cursor_column}@${kak_timestamp}"
compl=$(clang++ -x ${ft} -fsyntax-only ${kak_opt_clang_options} \
-Xclang -code-completion-brief-comments -Xclang -code-completion-at=${pos} - < ${dir}/buf 2> ${dir}/stderr |
- awk -F ': ' -e '
+ awk -F ': ' '
/^COMPLETION:/ && ! /\(Hidden\)/ {
id=$2
gsub(/ +$/, "", id)
diff --git a/rc/extra/git-tools.kak b/rc/extra/git-tools.kak
index 037371ff..58405767 100644
--- a/rc/extra/git-tools.kak
+++ b/rc/extra/git-tools.kak
@@ -64,7 +64,7 @@ def -params 1.. \
try %{ addhl flag_lines GitBlame git_blame_flags }
set buffer=$kak_bufname git_blame_flags '$kak_timestamp'
}" | kak -p ${kak_session}
- git blame "$@" --incremental ${kak_buffile} | awk -e '
+ git blame "$@" --incremental ${kak_buffile} | awk '
function send_flags(text, flag, i) {
if (line == "") { return; }
text=substr(sha,1,8) " " dates[sha] " " authors[sha]
@@ -94,7 +94,7 @@ def -params 1.. \
}
update_diff() {
- git diff -U0 $kak_buffile | awk -e '
+ git diff -U0 $kak_buffile | awk '
BEGIN {
line=0
flags=ENVIRON["kak_timestamp"]