# shellcheck shell=bash
___x_cmd_path_obj_push_(){
    local pathdata="${1}"
    local dir="${2:?Provide a directory}"

    if [ -z "$pathdata" ]; then         x_="${dir}"
    else                                x_="${pathdata}:${dir}"
    fi
}

___x_cmd_path_obj_push(){
    local x_=""
    ___x_cmd_path_obj_push_ "$@" || return $?
    printf "%s\n" "$x_"
}