diff --git a/SC3012.md b/SC3012.md new file mode 100644 index 0000000..38748d7 --- /dev/null +++ b/SC3012.md @@ -0,0 +1,28 @@ +## In POSIX sh, lexicographical \> is undefined. + +### Problematic code: + +```sh +#!/bin/sh +x=1.31 +y=1.29 +! [ $x \> $y ] +``` + +### Correct code: + +The easiest fix is to switch to a shell that *does* support lexicographical \>. + +Please add common code examples. + +### Rationale: + +Please expand on this section. + +### Exceptions: + +Please expand on this section. + +### Related resources: + +https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html#tag_20_128