Comments (4)
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.
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.
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.
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)
- vimcat of a directory will freeze the process HOT 1
- vimcat: do not stream small files
- plays very poorly with python helptext HOT 1
- system clipboard is clobbered HOT 10
- folding support
- Issues with vimcat as a preprocessor HOT 6
- search gets stuck (must move cursor manually for 'n' to work) HOT 3
- Disable specific mapping HOT 2
- Failed in make install-deb HOT 1
- vimcat hangs without any output
- Ctrl+F creates an empty file
- Inconsistent behavior of `d` key when scrolling
- "Option not supported" when paging the contents of Kitty buffer HOT 5
- vimpager breaks with vim 9 HOT 16
- "git diff" freezes under zsh on macOS 13.0.x HOT 1
- Weird behaviour when scrolling horizontal in "git diff" HOT 1
- Vimcat syntax highlighting doesn't seem to work with Lua coloschemes
- Feature Request: Please add a flag to force syntax highlighting. HOT 1
- unicode characters at end of line defect in vimcat
- Add new flag for specifying language
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 vimpager.