#!/bin/bash

################################################################################
# Copyright 2023-2025 by NI SP Software GmbH, All rights reserved.
# Copyright 1999-2023 by Nice, srl., All rights reserved.
#
# This software includes confidential and proprietary information
# of NI SP Software GmbH ("Confidential Information").
# You shall not disclose such Confidential Information
# and shall use it only in accordance with the terms of
# the license agreement you entered into with NI SP Software.
################################################################################

# Source common library script
. "${EF_ROOT}/plugins/ef/lib/utils"

_my_awk=$(ef_find_awk)

if [ "$1" = "-" ]; then
    "${_my_awk}" -f "${EF_ROOT}/plugins/fm/lib/realpath.awk" 2>/dev/null
else
    echo "$1" | "${_my_awk}" -f "${EF_ROOT}/plugins/fm/lib/realpath.awk" 2>/dev/null
fi
