HEX
Server: Apache
System: Linux vpshost11508.publiccloud.com.br 5.15.179-grsec-vpshost-10.lc.el8.x86_64 #1 SMP Mon Apr 7 12:04:45 -03 2025 x86_64
User: wicomm2 (10002)
PHP: 8.3.0
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/share/bash-completion/completions/nc
# nc(1) completion                                         -*- shell-script -*-

_nc()
{
    local cur prev words cword
    _init_completion || return

    case $prev in
        -h|-I|-i|-O|-P|-p|-V|-w)
            return
            ;;
        -s)
            _ip_addresses
            return
            ;;
        -T)
            COMPREPLY=( $( compgen -W 'critical inetcontrol lowdelay netcontrol
                throughput reliability ef af{11..43} cs{0..7}' -- "$cur" ) )
            return
            ;;
        -X)
            COMPREPLY=( $( compgen -W '4 5 connect' -- "$cur" ) )
            return
            ;;
        -x)
            _known_hosts_real "$cur"
            return
            ;;
    esac

    if [[ "$cur" == -* ]]; then
        COMPREPLY=( $( compgen -W '$( _parse_help "$1" -h )' -- "$cur" ) )
        return
    fi

    # Complete 1st non-option arg only
    local i
    for (( i=1; i < cword; i++ )); do
        [[ ${words[i]} != -* && ${words[i-1]} != -[IiOPpsTVwXx] ]] && return
    done

    _known_hosts_real "$cur"
} &&
complete -F _nc nc

# ex: filetype=sh