<p>It seems that the issue is expanding the variable when getting the answer for y/n question:</p>
<ul>
<li><a href="https://github.com/kamailio/kamailio/blob/master/utils/kamctl/kamdbctl.base#L216-L218">https://github.com/kamailio/kamailio/blob/master/utils/kamctl/kamdbctl.base#L216-L218</a></li>
</ul>
<p>Such expression seems to be specific for bash:</p>
<ul>
<li><a href="https://mywiki.wooledge.org/Bashism" rel="nofollow">https://mywiki.wooledge.org/Bashism</a></li>
</ul>
<p>We should decide what to do to have an acceptable solution. Or maybe focus to make kamcli a (full) replacement for kamctl/kamdbctl and get rid of those old-style shell/bash scripts.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/1977?email_source=notifications&email_token=ABO7UZOTOZP5HYXXFTDP4CTP4S3EFA5CNFSM4HWQPIAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYXBMPQ#issuecomment-506336830">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZK7VY3Y4N3SBUVJSADP4S3EFANCNFSM4HWQPIAA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZNEMPOWBHNPW7BO5PTP4S3EFA5CNFSM4HWQPIAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYXBMPQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/1977?email_source=notifications\u0026email_token=ABO7UZOTOZP5HYXXFTDP4CTP4S3EFA5CNFSM4HWQPIAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYXBMPQ#issuecomment-506336830",
"url": "https://github.com/kamailio/kamailio/pull/1977?email_source=notifications\u0026email_token=ABO7UZOTOZP5HYXXFTDP4CTP4S3EFA5CNFSM4HWQPIAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYXBMPQ#issuecomment-506336830",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>