#!/bin/sh -
# Copyright (C) 2011-2019 Red Hat Inc.
#
# sh/nbdsh.  Generated from nbdsh.in by configure.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

# Test if /bin/sh supports exec -a option (only supported in bash 4.2
# and above, and not part of POSIX).
if /bin/sh -c 'exec -a test true' 2>/dev/null; then
    exec -a nbdsh /usr/libexec/platform-python -mnbd "$@"
else
    exec          /usr/libexec/platform-python -mnbd "$@"
fi
