Questions tagged [bash]
The Unix shell which was the default shell in macOS until 10.15
1,830 questions
1
vote
1
answer
167
views
AppleScript Written on Intel iMac Runs Very Slow When MBA Exported As app on M2
Some years ago Apple dropped support for my ancient Canon Lide 30 scanner. So, I hung it off a Raspberry Pi (which still supports the scanner via scanimage) and wrote a very simple Apple Script and an ...
0
votes
1
answer
44
views
Make bash regex range case-sensitive?
In bash (3.2.57) on MacOS 15.7.4, command line regular expressions are normally case sensitive, but when you list a range of characters, such as [a-z], the result is case insensitive. This is a ...
0
votes
1
answer
58
views
New Terminal tab at current folder
My login shell is zsh, the default in macOS Sequoia.
However, I'm used to bash and so my .zshrc simply does exec /bin/bash.
Pressing command-T in a Terminal window should open a new tab at the current ...
0
votes
2
answers
74
views
Is it possible to make this script "safe"? [closed]
#!/bin/bash
# Download Installomator
curl -fsSL https://raw.githubusercontent.com/Installomator/Installomator/main/Installomator.sh -o /usr/local/bin/Installomator
chmod +x /usr/local/bin/...
0
votes
0
answers
63
views
Piping bash history output to external command is extremely slow
I have moved to macbook pro from linux recently and I do have quite a big bash history (over 200000 commands).
Unfortunately while using bash history in macOS I have noticed that if I pipe history ...
1
vote
2
answers
111
views
UI tests blocked by “bash requesting screen access” popup in Mac OS [closed]
On macOS, I get a system popup when running UI tests in GitHub saying:
“bash” is requesting to bypass the system private window picker and directly access your screen and audio.
How can I disable ...
0
votes
2
answers
229
views
Why $BASH is equal to /bin/zsh in bash
I have a single line in $HOME/.bashrc
echo SHELL=$SHELL BASH=$BASH BASH_VERSION=$BASH_VERSION
In MacOS Terminal settings, I have Run command = /usr/local/bin/bash
When I start a Terminal, I see:
...
1
vote
2
answers
190
views
Changing profiles on Terminal (macOS Mojave 10.14)
I'm unable to change my Terminal app profile (color theme) even when I change it in the preferences. I selected Homebrew as my profile, closed Terminal and reopened it - but it won't actually change ...
1
vote
2
answers
251
views
Why does sh -version on my mac output the version of a bash shell?
I see
sh -version
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin24)
Copyright (C) 2007 Free Software Foundation, Inc.
yet in https://developer.apple.com/library/archive/documentation/...
4
votes
1
answer
1k
views
Using command line to switch On/Off IPv4 or IPv6 network on macOS
I'm looking for a way to switch On/Off IPv4 or IPv6 network from command line on macOS.
Like the description here:
Can I turn off IPv4 and just use IPv6 on my Mac?
one can turn On/Off IPv4 on macOS ...
4
votes
2
answers
507
views
Side effects of changing the default shell in macOS to a Homebrew location
Some people prefer the latest Bash version for macOS (because /bin/bash is still a version in the 3.x range).
This can be changed with this:
brew install bash
chsh -s /opt/homebrew/bin/bash
However, ...
0
votes
0
answers
57
views
Terminal / Bash: Permission denied when appending to a file with RW rights granted by ACL
I have a file "test.log" inside a directory.
The directory has an accesslist, defined as:
0: user:Me allow list,add_file,delete_child,file_inherit
The file "test.log" (created by ...
0
votes
0
answers
130
views
Change word separators for text navigation in Terminal
This question may already be answered on here somewhere, but I'm unsure what keywords to use for my search.
In the Terminal, I frequently navigate around lines using the meta+left or meta+right arrow ...
6
votes
1
answer
1k
views
Shell script run daily by launchd stopped working after macOS Sequoia upgrade
I have a setup to copy backups from an Ubuntu 22 server running in the cloud to a local Mac.
On the Mac I have a shell script to run the rsync command and a launchd daemon to run this script daily.
...
1
vote
1
answer
121
views
How to alias the "Apple version" of 'ls -lO'?
macOS Ventura with a 'MacPorts' installation that includes GNU replacements for numerous "Apple-sourced" utilities including ls. The original ls is located at /bin/ls, the GNU/MacPorts ...