Comments (4)
Entirely up to you. If there are "bashisms" (like [[...]] instead of [...]) then you need bash. If there's an execution speed issue (as there was with the places menu) then a switch to dash will speed things up quite a bit, but some constructions will be ruled out.
"Places" had to pup up a menu almost instantaneously even for a big directory full of odd files and subdirectories. Other pipe menus might not be so pushed for speed. Also, hardware is now faster than it was when "places" was written.
In general, if you don't need bash then it makes your scripts more portable to use the generic shell.
from bunsen-pipemenus.
Yeah, but "more portable" is not required in our case, right? Also, by not using bash features you are making your code less readable and more error-prone, so please stick to bash (and its features) unless you really know what you're doing (BashPitfalls is a good start to add more sense to your scripts). In case of pipemenus it was proven (although some people are probably still not convinced) that switching from bash to sh does not bring a good enough speedup compared to better code style and less use of dependencies. Also, if you need more speed, you can try using something more advanced (perl comes to mind).
from bunsen-pipemenus.
On Debian, for the average user, it doesn't really matter if you do #!/bin/bash or #!/bin/sh in scripts. Bash and dash (to which /bin/sh is linked by default IIRC) however differ in execution speed; dash can be significantly faster -- I do notice the speed difference even on a i5 @ 2,9Ghz, I use dash as a shell for procmail etc. It should be up to the developer to decide what shell he wants to use. Both are available most of the time anyway.
from bunsen-pipemenus.
I'll leave it as it is then :)
from bunsen-pipemenus.
Related Issues (20)
- Package not found: Google chrome stable HOT 2
- "Recent Files" pipemenu nil value error and "Clear Recent Files" not working. HOT 9
- Edit to bl-tint2-pipemenu HOT 1
- bl-tint2-pipemenu when running default tint2 does not find config file to edit HOT 5
- ssh-pipemenu doesnt list the remote servers HOT 3
- Menu capitalization HOT 1
- Change some dependencies to recommends? HOT 8
- bl-multimedia-pipemenu: change labelling of smplayer as "Gnome mplayer" HOT 12
- bl-multimedia-pipemenu remove "volti" entry, do not add "volumeicon"? HOT 2
- bl-dropbox-pipemenu doesn't show progress of dependency installation HOT 7
- pipemenu's "Install" screen doesn't close HOT 8
- Scripts called from bunsen-utilities: test before adding menu item? HOT 1
- Remove package yad and packages bunsen-pipemenus and bunsen-untilities are removed too. HOT 2
- bl-kb-pipemenu can be speeded up HOT 1
- bl-compositor: needs to deal with '-h/--help' parameters HOT 20
- bl-recent-files-pipemenu: command truncated in some cases HOT 1
- bl-x-www-browser-pipemenu: select default browser should exit with a message... HOT 2
- bl-x-www-browser-pipemenu: there is no package called "firefox" in Debian Jessie HOT 2
- Having issues with bunsen pipemenus
- bl-recent-files-pipemenu: adapt script and package to use Lua 5.3 in Stretch HOT 1
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 bunsen-pipemenus.