Comments on: 10 Useful Tips for Writing Effective Bash Scripts in Linux https://www.tecmint.com/useful-tips-for-writing-bash-scripts-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Tue, 23 May 2017 09:41:29 +0000 hourly 1 By: Aaron Kili https://www.tecmint.com/useful-tips-for-writing-bash-scripts-in-linux/comment-page-1/#comment-891623 Tue, 23 May 2017 09:41:29 +0000 https://www.tecmint.com/?p=25666#comment-891623 In reply to LinuxHostSupport.

@LinuxHostSupport

Absolutely correct.

]]>
By: Aaron Kili https://www.tecmint.com/useful-tips-for-writing-bash-scripts-in-linux/comment-page-1/#comment-891325 Mon, 22 May 2017 06:10:57 +0000 https://www.tecmint.com/?p=25666#comment-891325 In reply to Mike Will.

@Mike

There is really no significant difference, but "==" is applicable to bash only. The POSIX form is "=". If portability to non-bash shells is important, then use "=".

]]>
By: LinuxHostSupport https://www.tecmint.com/useful-tips-for-writing-bash-scripts-in-linux/comment-page-1/#comment-891082 Sun, 21 May 2017 05:59:20 +0000 https://www.tecmint.com/?p=25666#comment-891082 In reply to Mike Will.

There is no advantage or disadvantage, in bash == is identical to = for string comparisons.

]]>
By: Mike Will https://www.tecmint.com/useful-tips-for-writing-bash-scripts-in-linux/comment-page-1/#comment-890868 Fri, 19 May 2017 23:56:42 +0000 https://www.tecmint.com/?p=25666#comment-890868 I don’t agree with using single ”=” in string comparison. What is the advantage?

]]>