next up previous contents index
Next: The strprefix Command Up: String Comparison and Global Previous: The strcmp Command   Contents   Index


The strcicmp Command

The strcicmp command is used for string comparison in control structures.

strcicmp string1 string2
The strcicmp command is similar to strcmp, however the comparison result is case-insensitive, and the Spice3 return convention is not supported. The global return value (accessible as ``$?'') is set to the comparison value. The comparison value is a number that is less than, equal to, or greater than zero according to whether string1 is lexically before, equal to, or after string2. The two arguments are literal strings.



Stephen R. Whiteley 2024-10-26