ShellCheck
proot
Our great sponsors
- InfluxDB - Access the most powerful time series database as a service
- CodiumAI - TestGPT | Generating meaningful tests for busy devs
- ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
- SonarQube - Static code analysis for 29 languages.
ShellCheck | proot | |
---|---|---|
457 | 68 | |
32,187 | 573 | |
- | 5.8% | |
7.7 | 0.0 | |
7 days ago | 18 days ago | |
Haskell | C | |
GNU General Public License v3.0 only | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ShellCheck
-
First time writing bash scripts for work, not sure if this is true elsewhere
not sure about unit/functional testing, but https://www.shellcheck.net/ is handy for linting and finding bad practice.
-
Bash newbie here, wanted to know your opinion
First, how did ShellSheck didn't give you warnings, if you checked it?
-
Bash script string argument is interpreted als multiple arguments
BTW, check out https://www.shellcheck.net/. You can install it to your computer and it'll warn you about this and many other ways you can accidentally shoot at your own foot with Bash.
-
Take your BASH scripting seriously
This is super easy but, may not always be enough.. Luckily, the fine people at ShellCheck gave this some thought and created a nifty tool. It’s got a nice README, is available via most decent package managers and, even has a web interface where you can test snippets (in case you’re bored and on the tube, I guess). The README also includes a Gallery of bad code to showcase some of the stuff shellcheck can pick up on.
-
Which Shell?
Bash because it's everywhere and I've put effort into learning it properly. My scripts almost always pass shellcheck first try, and I know the syntax of bash-specific features reasonably well. I don't see any advantage to learning another shell which I need to explicitly install and relearn all over again.
-
[P] Convert Any language to a Linux command (one-liner)
The Prompt logic could include some nuance to flag potentially harmful commands, but it would still be potentially fallible. However, you raise an excellent point, and value can be added by altering the workflow to run the results through a tool like shellcheck, where you can customize acceptable BASH commands.
-
Prompt advice for ChatGPT4
Idea: Incorporate shellcheck that repeats the code back to the bot until it passes shellcheck at least.
-
Why is it that a command run from the terminal command line produces line break but the same command run within bash script has no line break/
A good way to learn the finicky bits is to run all your scripts through shellcheck. (Better yet, find a plugin for your editor/IDE.) If it flags an issue, read the corresponding wiki page and see if you understand it.
-
Would love some feedback on my first set of shell scripts
Have you run them through shellcheck? https://www.shellcheck.net/
-
I made a volume and brightness indicator for i3wm using dunst
Nice work! I recommend using https://www.shellcheck.net/ to make sure your bash script is in a good modern shape
proot
-
Termux is an Android terminal emulator and Linux environment app
I understand the sentiment, but I disagree. From the last time I checked, the big compromise with GNU/Linux phones is still the lack of social media and messaging apps and appstore ecosystem. Android, with root, is every bit as much a computer as a Pinephone and Librem 5, but the opposite isn't true. Termux has PRoot, a user-space implementation of chroot allowing a full distro install. I personally don't have any problem depending on Google, I have a problem with things being locked away with no alternative. Given the option, I will happily accept the risks and void my warray to root.
- Ideas ??
- basic xfce session
-
what is the best Linux emulator ?, no root
There is a command-line variant, proot-distro. Usage examples are given at https://wiki.termux.com/wiki/PRoot.
-
The $8 Linux Computer
It's called PRoot, you can install other Linux distributions (e.g. Arch, Debian, etc.) within the virtual root environment.
-
For those who want to run FOSS Video Editors on Android
The video editors are running in Termux proot.
-
Ledger not working in termux - getting error "Bad system call"
Well, it says to use proot, which is described here. It seems you use it to install Linux distros inside Termux without root, and then if you install ledger inside such a distro, you won't run into system call issues.
-
Help with Infra Arcana on Ubuntu
XDG_RUNTIME_DIR is normally set by pam_systemd(8) on systemd-based systems (or pam_elogind(8) on non-systemd-based systems that nevertheless use elogind). Checking the Termux installation on my own phone, there are no man pages for either pam_systemd nor pam_elogind, so i assume neither is available by default. But OP talks of Ubuntu, so i assume they're running Ubuntu in a PRoot - OP, is that the case? If so, you might need to ask Termux-knowledgable people what the best thing to do is in this case. (When i was running Void Linux i just set XDG_RUNTIME_DIR via shell script on console login.)
-
Opensuse login issue on qemu.
Have you tried downloading a fresh disk image to test since you know the password now? Also, since you're trying to run aarch64 opensuse on termux, it may be a better idea performance-wise to use Proot and/or proot-distro. PRoot doesn't have the overhead that qemu does, so if you don't need any special hardware features then it may work better for you.
- [DEV] Termux v0.118.0 Release
What are some alternatives?
proot-distro - An utility for managing installations of the Linux distributions in Termux.
bash-language-server - A language server for Bash
shfmt - Dockernized shfmt. This formats shell script.
PowerShell - PowerShell for every system!
ubuntu-in-termux - This is a script by which you can install Ubuntu in your termux application without a rooted device
shellharden - The corrective bash syntax highlighter
efm-langserver - General purpose Language Server
termux-wayland - Not released and unmaintained Termux X11 add-on application.
neomake - Asynchronous linting and make framework for Neovim/Vim
termux-packages - A package build system for Termux.
termux-fedora - A script to install a Fedora chroot into Termux
sh - A shell parser, formatter, and interpreter with bash support; includes shfmt