Comments (3)
Hi @nvcken
Can you please verify your bash version using bash --version
command? It must be >= 4.0.
It seems like you are getting error for the associative array declaration, which is a part of bash 4.0+
------- OR ---------------
You may be running the script as sh ./jpsstat.sh
which doesn't run the script as bash. Try to run using ./jpsstat.sh
from jps_stat.
bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)
Copyright (C) 2007 Free Software Foundation, Inc.
java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
Hi, I tried ./jpsstat.sh
but have the same issue
from jps_stat.
Hello @nvcken
Your system has bash version 3.2.57(1)-release
. But jpsstat.sh
requires bash >=4.0. So you are getting this error.
jpsstat.sh
uses associative array which is a part of bash 4.0+
from jps_stat.
Related Issues (8)
- printf error HOT 1
- document options in README.md
- Docker sh support HOT 2
- Crashes on Linux with sytax error; seems to haven't been tested HOT 3
- Syntax error HOT 4
- jps log output HOT 1
- Heap Memory and RAM HOT 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 jps_stat.