# (c) Copyright 2000-2011, ClearSCM, Inc., all rights reserved.
#
################################################################################
# (c) Copyright 2000-2011, ClearSCM, Inc., all rights reserved.
#
################################################################################
export CCHOME=$(cygpath -u "$(regtool get '/machine/SOFTWARE/Rational Software/RSINSTALLDIR' 2>/dev/null)"/Clearcase 2>/dev/null);
else
export CCHOME="/opt/rational/clearcase"
export CCHOME=$(cygpath -u "$(regtool get '/machine/SOFTWARE/Rational Software/RSINSTALLDIR' 2>/dev/null)"/Clearcase 2>/dev/null);
else
export CCHOME="/opt/rational/clearcase"
# Need to set pipefail to pick up the exit code from cleartool
# otherwise we get the exit code from tr which is usually 0
set -o pipefail
# Need to set pipefail to pick up the exit code from cleartool
# otherwise we get the exit code from tr which is usually 0
set -o pipefail
# We simply must rid ourselves of these bloody backlashes!!! And yet Clearcase
# insists on retaining them. Let's strip them off, do our thing, then put them
# back to backslashes when we output stuff.
# We simply must rid ourselves of these bloody backlashes!!! And yet Clearcase
# insists on retaining them. Let's strip them off, do our thing, then put them
# back to backslashes when we output stuff.
COMPREPLY=($(compgen -W "$opts" -- $cur))
elif [[ $cur == * ]]; then
COMPREPLY=($(compgen -W "$(_views $cur)"))
COMPREPLY=($(compgen -W "$opts" -- $cur))
elif [[ $cur == * ]]; then
COMPREPLY=($(compgen -W "$(_views $cur)"))