|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/share/zsh/4.2.6/functions/ |
Upload File : |
#compdef sed
local args
args=(
'(-n --quiet --silent)'{-n,--quiet,--silent}'[suppress automatic printing of pattern space]'
'(1)*'{-e,--expresssion=}'[add sed commands to run]:sed script'
'(1)*'{-f,--file=}'[add contents of file to commands to run]:file:_files'
'(-e)1: :_guard "^-*" sed script'
':input file:_files'
)
if _pick_variant gnu=GNU unix --version; then
args+=(
'(-i --in-place)'{-i,--in-place=}'[edit files in place]::suffix for backup'
'(-l --line-length)'{-l,--line-length=}'[specify line-wrap length for the l command]'
'(-r --regexp-extended)'{-r,--regexp-extended}'[use extended regular expressions]'
'(-s --separate)'{-s,--separate}'[consider files separately instead of as a combined stream]'
'(-u --unbuffered)'{-u,--unbuffered}'[disable data buffering]'
'(- 1 :)--help[print program usage]'
'(- 1 :)'{-V,--version}'[print program version]'
)
else
args=( "${(@)args:#(|\(*\))(|\*)--*}" )
fi
_arguments "$args[@]"