#!/bin/bash
set -x
a ()
set -x
a ()
{
echo $1
}
b ()
{
a "--some-flag='param1 param2,param3'"
}b
In the a () function "echo" is called like below:
echo '--some-flag='\''param1' 'param2,param3'\'''
How can I pass parameter to a () function without escaping ?
To make it possible to call echo as follow:
echo --some-flag='param1 param2,param3'
I mean to pass parameters as is?