Giter VIP home page Giter VIP logo

Comments (8)

aabc avatar aabc commented on May 22, 2024

I never see such error. What version of bash?

I tried on bash 2.04.0, 3.1.17, 4.1.2, all w/o syntax errors.

from ipt-netflow.

aabc avatar aabc commented on May 22, 2024

Ah you run via sh. Why?

from ipt-netflow.

xaionaro avatar xaionaro commented on May 22, 2024

"bash" is a strong dependency. It may be not installed on a lot of systems. Do you want keep this dependency?

from ipt-netflow.

aabc avatar aabc commented on May 22, 2024

I din't know there is anti-bash conspiracy. But please don't report it as bug when you run bash script with sh. Thanks.

from ipt-netflow.

xaionaro avatar xaionaro commented on May 22, 2024

I didn't report this as a bug. It's not a bug. It's just an extra heavy dependency. It's your will to keep it, of course. Just IMHO there's no reason for that.

from ipt-netflow.

aabc avatar aabc commented on May 22, 2024

There is no reason for anything in general. But, "bashism" is for arrays (which is absent in sh). See there is reason for it. Arrays is for detection of multiple module installs. See another reason for it. That detection is to ease users life and make install very simple. See, third reason for it.

This doesn't look to me as "no reason for that". And doesn't look like "easily fix the problem with bash".

I don't usually code useless things w/o reason.

from ipt-netflow.

aabc avatar aabc commented on May 22, 2024
$ head -1 /usr/sbin/dkms
#!/bin/bash

Resolve this bashism first. 😱

from ipt-netflow.

xaionaro avatar xaionaro commented on May 22, 2024

which is absent in sh

What is arrays in this context?

$ cat > /tmp/test.sh << EOF
#!/bin/sh

A='el1 el2'

for e in \$A; do
        echo "element: \$e"
done
EOF
$ sh /tmp/test.sh
element: el1
element: el2

This doesn't look to me as "no reason for that".

OK :)

Resolve this bashism first.

Damn. You right! It's very unexpected surprise. Sorry for wasting your time on this issue.

from ipt-netflow.

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.