Commit 352d160d authored by Vitaly Lipatov's avatar Vitaly Lipatov

add showcmd in addition to docmd

parent 9c875228
...@@ -69,7 +69,7 @@ realpath() ...@@ -69,7 +69,7 @@ realpath()
} }
# Print command line and run command line # Print command line and run command line
docmd() showcmd()
{ {
if [ -z "$quiet" ] ; then if [ -z "$quiet" ] ; then
set_boldcolor $GREEN set_boldcolor $GREEN
...@@ -78,6 +78,12 @@ docmd() ...@@ -78,6 +78,12 @@ docmd()
echo " $PROMTSIG $@" echo " $PROMTSIG $@"
restore_color restore_color
fi fi
}
# Print command line and run command line
docmd()
{
showcmd "$@"
"$@" "$@"
} }
......
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