403Webshell
Server IP : 13.213.54.232  /  Your IP : 216.73.216.72
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ip-172-31-17-110 6.8.0-1029-aws #31~22.04.1-Ubuntu SMP Thu Apr 24 21:16:18 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 7.1.33-67+ubuntu22.04.1+deb.sury.org+1
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /snap/core20/current/usr/share/bash-completion/completions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /snap/core20/current/usr/share/bash-completion/completions/gccgo
# gcc(1) completion                                        -*- shell-script -*-

_gcc()
{
    local cur prev prev2 words cword argument prefix prefix_length
    _init_completion || return

    # Test that GCC is recent enough and if not fallback to
    # parsing of --completion option.
    if ! $1 --completion=" " 2>/dev/null; then
        if [[ "$cur" == -* ]]; then
            local cc=$($1 -print-prog-name=cc1 2>/dev/null)
            [[ $cc ]] || return
            COMPREPLY=($( compgen -W "$($cc --help 2>/dev/null | tr '\t' ' ' |\
                command sed -e '/^  *-/!d' -e 's/ *-\([^][ <>]*\).*/-\1/')" \
                -- "$cur" ))
            [[ $COMPREPLY == *= ]] && compopt -o nospace
        else
            _filedir
        fi
        return
    fi

    # extract also for situations like: -fsanitize=add
    if [[ $cword -gt 2 ]]; then
        prev2="${COMP_WORDS[$cword - 2]}"
    fi

    # sample: -fsan
    if [[ "$cur" == -* ]]; then
        argument=$cur
        prefix=""
    # sample: -fsanitize=
    elif [[ "$cur" == "=" && $prev == -* ]]; then
        argument=$prev$cur
        prefix=$prev$cur
    # sample: -fsanitize=add
    elif [[ "$prev" == "=" && $prev2 == -* ]]; then
        argument=$prev2$prev$cur
        prefix=$prev2$prev
    # sample: --param lto-
    elif [[ "$prev" == --param ]]; then
        argument="$prev $cur"
        prefix="$prev "
    fi

    if [[ -z $argument ]]; then
        _filedir
    else
        # In situation like '-fsanitize=add' $cur is equal to last token.
        # Thus we need to strip the beginning of suggested option.
        prefix_length=$((${#prefix}+1))
        local flags=$($1 --completion="$argument" | cut -c $prefix_length-)
        [[ "${flags}" == "=*" ]] && compopt -o nospace 2>/dev/null
        COMPREPLY=( $(compgen -W "$flags" -- "") )
    fi
} &&
complete -F _gcc gcc{,-5,-6,-7,-8} g++{,-5,-6,-7,-8} g77 g95 \
    gccgo{,-5,-6,-7,-8} gcj gfortran{,-5,-6,-7,-8} gpc &&
{
    cc  --version 2>/dev/null | command grep -q GCC || \
        [[ $(_realcommand cc) == *gcc* ]] && \
        complete -F _gcc cc  || complete -F _minimal cc
    c++ --version 2>/dev/null | command grep -q GCC || \
        [[ $(_realcommand c++) == *g++* ]] && \
        complete -F _gcc c++ || complete -F _minimal c++
    f77 --version 2>/dev/null | command grep -q GCC || \
        [[ $(_realcommand f77) == *gfortran* ]] && \
        complete -F _gcc f77 || complete -F _minimal f77
    f95 --version 2>/dev/null | command grep -q GCC || \
        [[ $(_realcommand f95) == *gfortran* ]] && \
        complete -F _gcc f95 || complete -F _minimal f95
}

# ex: filetype=sh

Youez - 2016 - github.com/yon3zu
LinuXploit