2.6.7 Defining the handling of unsupported conditional expressions (Windows only)
The following parameter is used for defining the handling when unsupported conditional expressions are executed in the test command.
UNSUPPORT_TEST parameter
In a Windows environment, conditional expressions for evaluating the file attributes that are listed below are not supported. If any of these conditional expressions is specified, an error will result. However, by specifying the UNSUPPORT_TEST parameter, you can display a message and handle a specified conditional expression either as an error or as a normal event. The unsupported conditional expressions are as follows:
-
-G file: Verify if the group to which a file belongs matches the group executing the calling process.
-
-O file: Verify whether the owner of the file has a valid user ID for the process.
Although JP1/Advanced Shell supports the following conditional expressions, versions earlier than 11-00 do not support these conditional expressions so that the following conditional expressions can be specified.
-
-h file: Verify if the file is a symbolic link.
-
-L file: Verify if the file is a symbolic link (same as -h).
-
file1 -ef file2: Verify if file1 and file2 exist and the entities of file1 and file2 are the same (if either their symbolic link or hard link targets are the same).