2022-02-01 05:27:12 +00:00
|
|
|
if chmod --version &>/dev/null # gnu's not unix
|
2021-12-15 16:59:12 +00:00
|
|
|
complete chmod -s c -l changes -d 'Like -v but report only changes'
|
|
|
|
complete chmod -l no-preserve-root -d 'Don\'t treat / special (default)'
|
|
|
|
complete chmod -l preserve-root -d 'Fail to operate recursively on /'
|
|
|
|
complete chmod -s f -l silent -l quiet -d 'Suppress most errors'
|
|
|
|
complete chmod -s v -l verbose -d 'Prints each file processed'
|
|
|
|
complete chmod -l reference -d 'Use RFILEs mode instead of MODE values' -r
|
|
|
|
complete chmod -s R -l recursive -d 'Operate recursively'
|
|
|
|
complete chmod -l help -d 'Display help and exit'
|
|
|
|
complete chmod -l version -d 'Display version and exit'
|
2022-01-31 03:48:20 +00:00
|
|
|
else # guess it might be unix
|
2021-12-15 16:59:12 +00:00
|
|
|
complete chmod -s f -d 'Suppress errors'
|
|
|
|
complete chmod -s H -d "Follow given symlinks with -R"
|
|
|
|
complete chmod -s h -d "Don't dereference given symlinks"
|
|
|
|
complete chmod -s L -d "Follow all symlinks with -R"
|
|
|
|
complete chmod -s P -d "Follow no symlinks with -R"
|
|
|
|
complete chmod -s R -d 'Operate recursively'
|
|
|
|
complete chmod -s v -d 'Prints each file processed'
|
2022-01-31 03:48:20 +00:00
|
|
|
end
|