File: //usr/share/ri/3.0.0/system/Kernel/test-i.ri
U:RDoc::AnyMethod[iI" test:ETI"Kernel#test;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"IUses the character +cmd+ to perform various tests on +file1+ (first ;TI";table below) or on +file1+ and +file2+ (second table).;To:RDoc::Markup::BlankLine o;
; [I"!File tests on a single file:;T@o:RDoc::Markup::Verbatim; [*I"Cmd Returns Meaning
;TI"1"A" | Time | Last access time for file1
;TI"6"b" | boolean | True if file1 is a block device
;TI":"c" | boolean | True if file1 is a character device
;TI"1"C" | Time | Last change time for file1
;TI">"d" | boolean | True if file1 exists and is a directory
;TI"+"e" | boolean | True if file1 exists
;TI"A"f" | boolean | True if file1 exists and is a regular file
;TI"<"g" | boolean | True if file1 has the \CF{setgid} bit
;TI"+ | | set (false under NT)
;TI";"G" | boolean | True if file1 exists and has a group
;TI"< | | ownership equal to the caller's group
;TI"F"k" | boolean | True if file1 exists and has the sticky bit set
;TI"B"l" | boolean | True if file1 exists and is a symbolic link
;TI"7"M" | Time | Last modification time for file1
;TI";"o" | boolean | True if file1 exists and is owned by
;TI"1 | | the caller's effective uid
;TI";"O" | boolean | True if file1 exists and is owned by
;TI", | | the caller's real uid
;TI"9"p" | boolean | True if file1 exists and is a fifo
;TI"A"r" | boolean | True if file1 is readable by the effective
;TI", | | uid/gid of the caller
;TI";"R" | boolean | True if file is readable by the real
;TI", | | uid/gid of the caller
;TI"B"s" | int/nil | If file1 has nonzero size, return the size,
;TI"+ | | otherwise return nil
;TI";"S" | boolean | True if file1 exists and is a socket
;TI";"u" | boolean | True if file1 has the setuid bit set
;TI">"w" | boolean | True if file1 exists and is writable by
;TI", | | the effective uid/gid
;TI">"W" | boolean | True if file1 exists and is writable by
;TI"' | | the real uid/gid
;TI"@"x" | boolean | True if file1 exists and is executable by
;TI", | | the effective uid/gid
;TI"@"X" | boolean | True if file1 exists and is executable by
;TI"' | | the real uid/gid
;TI"A"z" | boolean | True if file1 exists and has a zero length
;T:@format0o;
; [I"Tests that take two files:;T@o;; [I"<"-" | boolean | True if file1 and file2 are identical
;TI">"=" | boolean | True if the modification times of file1
;TI"* | | and file2 are equal
;TI"="<" | boolean | True if the modification time of file1
;TI"0 | | is prior to that of file2
;TI"=">" | boolean | True if the modification time of file1
;TI", | | is after that of file2;T;
0:
@fileI"file.c;T:0@omit_headings_from_table_of_contents_below0I"(test(cmd, file1 [, file2] ) -> obj
;T0[ I"(*args);T@FFI"Kernel;TcRDoc::NormalModule00