support unix file and variants in trigger
parent
d5ee307b01
commit
8ab2ace896
|
@ -21,7 +21,7 @@ category 'computing_tools';
|
|||
handle query => sub {
|
||||
my $query = $_;
|
||||
|
||||
s/\s*(chmod|permissions?)\s*//g;
|
||||
s/\s*(unix|files?|chmod|permissions?)\s*//g;
|
||||
return unless /^(0|1|2|4|6|7)?([0-7]{3})$/;
|
||||
|
||||
my $plain_output;
|
||||
|
|
|
@ -80,6 +80,21 @@ Attributes: sticky, setuid and setgid
|
|||
attributes => 'sticky, setuid and setgid',
|
||||
})
|
||||
),
|
||||
'unix file permissions chmod 777' => test_zci(
|
||||
'777 (octal)
|
||||
rwxrwxrwx (symbolic)
|
||||
User: read, write and execute
|
||||
Group: read, write and execute
|
||||
Others: read, write and execute
|
||||
',
|
||||
structured_answer => _expected_result({
|
||||
symbolic => 'rwxrwxrwx',
|
||||
user => 'read, write and execute',
|
||||
group => 'read, write and execute',
|
||||
others => 'read, write and execute',
|
||||
attributes => undef,
|
||||
}),
|
||||
),
|
||||
|
||||
'permission 9644' => undef,
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue