Timeline for Brackets in if condition: why am I getting syntax errors without whitespace?
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 20, 2014 at 23:53 | history | edited | mikeserv | CC BY-SA 3.0 |
deleted 131 characters in body
|
| Oct 16, 2014 at 22:38 | history | edited | Gilles 'SO- stop being evil' | CC BY-SA 3.0 |
added 661 characters in body
|
| Jun 4, 2014 at 15:09 | comment | added | Stéphane Chazelas |
[ when -a/-o are not used is always reliable with POSIX compliant shells. There's no advantage whatsoever in using -a/-o over &&/||. I would definitely discourage its use. Note that [[ is not POSIX.
|
|
| Jun 4, 2014 at 15:05 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 |
typo
|
| Jun 4, 2014 at 14:58 | history | edited | Hauke Laging | CC BY-SA 3.0 |
added 194 characters in body
|
| Jun 4, 2014 at 14:54 | history | edited | Stéphane Chazelas | CC BY-SA 3.0 |
added 91 characters in body
|
| Jun 4, 2014 at 14:21 | comment | added | Hauke Laging | @AshokSanganahalli I have extended my answer. | |
| Jun 4, 2014 at 14:21 | history | edited | Hauke Laging | CC BY-SA 3.0 |
added 334 characters in body
|
| Jun 4, 2014 at 14:14 | comment | added | Kumar1 | How we can match the two condition in if , like month value == day value if [$month="01"] && [$day="01"]; am expecting 01 && 01 true then print below conditions or move to else statement | |
| Jun 4, 2014 at 14:11 | history | answered | Hauke Laging | CC BY-SA 3.0 |