Git Product home page Git Product logo

Comments (4)

rkitover avatar rkitover commented on July 30, 2024

Thanks for the report, I'll look into it.

I try not to rely on bash so that the scripts work on systems like solaris and the bsds, so I'll probably rewrite it in bourne.

On Tuesday, December 18, 2012 at 12:05 PM, Jeff wrote:

Ubuntu has a highperformance posix dash for its /bin/sh. This means that vimcat does not work on ubuntu.
vimcat uses #!/bin/sh but explicitly states in the header comment that it is a bash script. This is incorrect behavoir. I would expect that the script should either be updated to avoid any non-posix functionality or more likely the interpreter line should be changed to /bin/bash so that it uses the interpreter it expects.


Reply to this email directly or view it on GitHub (#53).

from vimpager.

jwadamson avatar jwadamson commented on July 30, 2024

I now see in history that vimcat is an experimental utility. It caught my eye so I tried to run it to figure out what it was for, and it failed due to the bashism. Thanks for the prompt response.

from vimpager.

rkitover avatar rkitover commented on July 30, 2024

I haven't had a chance to rewrite the script in bourne shell, but in the meanwhile I've changed the shebang from #!/bin/sh to #!/bin/bash and uploaded it to vim.org:

http://www.vim.org/scripts/script.php?script_id=4325

from vimpager.

rkitover avatar rkitover commented on July 30, 2024

There is now shell detection code that tries to find a POSIX shell on all systems, while remaining a #!/bin/sh script.

from vimpager.

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.