Commit b1c331b3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

introduce get_firstarg, get_lastarg

add in docmd support for EXTRA_SHOWDOCMD
parent 4912bc0b
......@@ -92,7 +92,7 @@ showcmd()
# Print command line and run command line
docmd()
{
showcmd "$@"
showcmd "$@$EXTRA_SHOWDOCMD"
"$@"
}
......@@ -127,6 +127,18 @@ sudocmd_foreach()
done
}
get_firstarg()
{
echo -n "$1"
}
get_lastarg()
{
local lastarg
eval lastarg=\${$#}
echo -n "$lastarg"
}
filter_strip_spaces()
{
......
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