Use just options described in man page

This commit is contained in:
Emily Grace Seville 2022-12-04 06:37:50 +10:00 committed by Fabian Boehm
parent e9d2bc9db1
commit 6608ddc95b

View File

@ -1,7 +1,6 @@
set -l options allexport notify noclobber errexit noglob trackall keyword monitor noexec privileged stdin nounset verbose markdirs xtrace
complete -c oksh -a "+{a,b,C,e,f,h,i,k,l,m,n,p,r,u,v,X,x,o}"
complete -c oksh -a "-{a,b,C,e,f,h,i,k,l,m,n,p,r,u,v,X,x,o}"
complete -c oksh -s c
complete -c oksh -s s
complete -c oksh -a "$options"
complete -c oksh -s c -d 'Specify commands to run'
complete -c oksh -s i -d 'Use interactive mode'
complete -c oksh -s l -d 'Use login shell'
complete -c oksh -s p -d 'Use privileged shell'
complete -c oksh -s r -d 'Use restricted shell'
complete -c oksh -s c -d 'Run commands from stdin'