Git Product home page Git Product logo

Comments (3)

amarjeetanandsingh avatar amarjeetanandsingh commented on June 19, 2024

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.

nvcken avatar nvcken commented on June 19, 2024
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.

amarjeetanandsingh avatar amarjeetanandsingh commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.