Commit 8a25ed5f authored by Vitaly Lipatov's avatar Vitaly Lipatov

add quote_args

parent 0c88bae8
......@@ -63,3 +63,14 @@ option_all()
[ "$1" = "--all" ] && return
return 1
}
# quote with \' all args with spaces
quote_args()
{
local i
for i in "$@" ; do
[ "${i// /_}" = "$i" ] && echo -n " $i" && continue
echo -n " \'$i\'"
done
}
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