Timeline for Efficiently compare If variable exists and is not equal
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 19, 2016 at 8:28 | comment | added | ssh2ksh | Thank you Gilles, how ironic I would actually make it slower! I've updated my answer to reflect your hint. | |
| May 19, 2016 at 8:26 | history | edited | ssh2ksh | CC BY-SA 3.0 |
Updated syntax thanks to Gilles' hint
|
| May 18, 2016 at 21:47 | comment | added | Gilles 'SO- stop being evil' |
Creating a subshell reduces the performance. { test … || test …; } && echo OK would do the same thing without creating a subshell. It wouldn't be a definite performance improvement over the original (maybe a slight difference one way or the other depending on the shell0.
|
|
| May 18, 2016 at 15:15 | history | answered | ssh2ksh | CC BY-SA 3.0 |