On Ubuntu, `/bin/sh` defaults to `dash` whose built-in `echo` command does not 
support the `-e` flag. `printf`, on the other hand, supports backslash escapes 
by default so we use that instead.

In passing, also clean up some messy ANSI escape codes.

You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/3671

-- Commit Summary --

  * utils: Prefer `printf` over `echo -e`.

-- File Changes --

    M pkg/kamailio/obs/kamailio.init (2)
    M utils/kamctl/kamctl (2)
    M utils/kamctl/kamctl.base (10)
    M utils/kamctl/kamdbctl (6)
    M utils/kamctl/kamdbctl.base (10)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/3671.patch
https://github.com/kamailio/kamailio/pull/3671.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3671
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/[email protected]>
_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to [email protected]

Reply via email to