Comments (2)
HI
Yes that's correct. that's a typo, I should have spotted that as shellcheck flags it as an issue(SC2154) and I always run shellcheck on scripts before i use/publish them.
The stopwatch function still works , that "if statement" is only there to catch a user error: if they run "stopWatch" before they run "startWatch". and return error code 2.
thanks
from bashmultitool.
hey no worries i just wasn't sure if there was some convention i didn't know about, i only noticed it because I'm building a bash snippet manager / command line IDE and that and i happened to be doing it in vs code and it point it out to me. I've only been programming 6 months and exclusively in bash so far and its got some jacked up exceptions (like I've seen code that's set up to intentionally fail which still doesn't make sense to me).
from bashmultitool.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bashmultitool.