403Webshell
Server IP : 51.89.169.208  /  Your IP : 216.73.216.211
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/thread-self/root/usr/share/zsh/5.5.1/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/usr/share/zsh/5.5.1/functions/_absolute_command_paths
#autoload

# This function completes 'ls' to '/bin/ls'
_hashed_absolute_command_paths() {
  local -aU set_of_dirs_of_hashed_commands=( ${^commands%/*}/ )
  local i
  integer ret=1
  for i in $set_of_dirs_of_hashed_commands
  do
    local -a matches=( "${(@)commands[(R)${~i}[^/]#]}" )
    local -a descs=( $matches:t )
    compadd -M "l:|=$i" -d descs "$@" -a matches
    ret=0
  done
  return ret
}

# This function completes absolute pathnames of executables, e.g., /etc/rc.local
_typed-in_absolute_command_paths() {
  # TODO: the description "full path to an executable" and tag in the caller are ignored by _path_files
  if [[ -z $PREFIX ]]; then
    _path_files -/ -g '*(-*)' -P / -W /
  elif [[ $PREFIX[1] == / ]]; then
    _path_files -/ -g '*(-*)' -W /
  else
    return 1
  fi
}

_absolute_command_paths() {
  _alternative \
    'commands:hashed command by absolute path:_hashed_absolute_command_paths' \
    'commands:full path to an executable:_typed-in_absolute_command_paths'
}


_absolute_command_paths "$@"

Youez - 2016 - github.com/yon3zu
LinuXploit