FSYNTAX


Syntax:     FSYNTAX(string)

Defn: A CI evaluator function that returns the syntax of a
filename string. Possible return values are:
- "MPE" "MPE;WILD" "MPE;LOCK" "MPE;FEQ" "MPE;$FILE"
"MPE;REMOTE" and combinations where appropriate
- "POSIX" "POSIX;WILD"
- "ERROR=nnn" for syntax error nnn.

Type: String

Example: fsyntax('a.b.c')
Result: MPE
Example: fsyntax('/a/b/c')
Result: POSIX
Example: fsyntax('./ab@/c')
Result: POSIX;WILD
Example: fsyntax('$null')
Result: MPE;$FILE
Example: fsyntax('a.b.c.d')
Result: ERROR=426
Example: calc word(fsyntax('a@.b.c'))
Result: MPE
Example: if word(setvar(x,fsyntax(filevar))) = 'ERROR' then
echo File syntax error: ![word(x,,-1)]
endif