Giter Site home page Giter Site logo

Comments (5)

tomice avatar tomice commented on July 20, 2024

While I cannot upgrade to 10.15 yet due to some software incompatibility issues I have, I believe this is most likely an error due to how the $TERM variable is set. If you do an echo $TERM, what does it say?

from git-quick-stats.

arzzen avatar arzzen commented on July 20, 2024

@windard please, what is your output of command echo $TERM (is still relevant this issue?)

from git-quick-stats.

kankowski avatar kankowski commented on July 20, 2024

On macOS 10.15, I experience the following error:

$ git-quick-stats
/usr/local/bin/git-quick-stats: line 26: ${_merges,,}: bad substitution

How could I get around it? Thanks.

from git-quick-stats.

tomice avatar tomice commented on July 20, 2024

Sorry, that's a Bash 4.0-ism. OS X runs an old version of Bash, and I forgot lowercase variable expansion didn't occur until 4.0. It's not necessary, as it was meant to be a quick string sanitization effort.

To fix it, remove the two commas from that variable on lines 26 and 28.

I'll make a fix when I get some time later.

from git-quick-stats.

tomice avatar tomice commented on July 20, 2024

Given the lack of feedback from the OP on the issue with the $TERM variable, I vote we close this as I have been unable to replicate this issue. I have tried the following on macOS 10.14:

TERM=xterm-256color runs successfully
TERM=xterm runs successfully
TERM="" reports TERM environment variable not set
TERM="unknown" reports 'unknown': I need something more specific
TERM="foo" reports terminals database is inaccessible

The following link seems to indicate it is a macOS issue regarding corruption or an incorrectly set $TERM variable: https://apple.stackexchange.com/questions/26662/unknown-terminal-xterm-256color

from git-quick-stats.

Related Issues (20)

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.