Commit 6c7fc452 authored by Vitaly Lipatov's avatar Vitaly Lipatov

showcmd: redirect output to stderr

parent a4aa1be8
...@@ -578,10 +578,11 @@ check_display() ...@@ -578,10 +578,11 @@ check_display()
$XSET -b $XSET -b
} }
# Print command line only # Print command line only (to stderr to not pollute stdout)
showcmd() showcmd()
{ {
local i local i
{
SETCOLOR_SUCCESS SETCOLOR_SUCCESS
echo -n " \$" echo -n " \$"
for i in "$@" ; do for i in "$@" ; do
...@@ -593,7 +594,7 @@ showcmd() ...@@ -593,7 +594,7 @@ showcmd()
done done
echo echo
SETCOLOR_NORMAL SETCOLOR_NORMAL
} >&2
} }
# Print command line and run command line # Print command line and run command line
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment