1
0
mirror of https://github.com/zplug/zplug synced 2025-04-30 13:17:57 +02:00

remove an echo and fix awk invocation - fixes #449

This commit is contained in:
Phil Davies 2017-12-29 22:41:31 +00:00
parent 8f14b4850d
commit ecb571fa2b

@ -31,7 +31,6 @@ __zplug::utils::awk::path()
elif ${=awk_path} -Wv 2>&1 | grep -q "mawk"; then
# mawk
variant=${variant:-"mawk"}
echo $awk:$variant
else
# nawk
variant="nawk"
@ -69,7 +68,8 @@ __zplug::utils::awk::ltsv()
{
local \
user_awk_script="$1" \
ltsv_awk_script
ltsv_awk_script \
awk_path
ltsv_awk_script=$(cat <<-'EOS'
function key(name) {
@ -82,6 +82,7 @@ __zplug::utils::awk::ltsv()
EOS
)
awk -F'\t' \
__zplug::utils::awk::path | read awk_path
${awk_path:-awk} -F'\t' \
"${ltsv_awk_script} ${user_awk_script}"
}