Created SC3012 (markdown)

Martin Bagge / brother
2021-03-30 00:55:52 +02:00
parent ee29d1febf
commit fb48e89be3

28
SC3012.md Normal file

@@ -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