Bash Framework. elif is a contraction and evaluates an arithmetic expression. In this article, the test command, [command, [[command usage of Linux Bash and the differences between them are discussed. Former Lifewire writer Juergen Haas is a software developer, data scientist, and a fan of the Linux operating system. */ The Bash version is 4.4.18(1)-release ! Run from a shell prompt, test does not return a value to the standard output, it merely returns an exit-status code. When you compare elements that parse as strings, use the following comparison operators: (displays "no" to the screen because "string1" does not equal "string2"), (displays "yes" to the screen because "string1" does not equal "string2"), (displays "yes" to the screen because "string1" has a string length greater than zero), (displays "no" to the screen because "string1" has a string length greater than zero). First released in 1989, it has been used as the default login shell for most Linux distributions and all releases of Apple's macOS prior to macOS Catalina. BoxAdcontent.document.write("
;)