All Questions
Tagged with shell-scripting or shell
93,045 questions
1
vote
1
answer
36
views
Copy stderr of previous command without rerunning it
(I am using the kitty terminal emulator, though I would appreciate answers for other terminal emulators as well.)
I run a command, and get some error message, like this:
~ » somecommand
❌️ Some Error ...
-2
votes
0
answers
36
views
How can I list git tags that are present locally but not on a remote [duplicate]
I would like to get a list of git tags that are in my current checkout, but do not come from a specific remote.
Is there a simple way to do this?
3
votes
5
answers
160
views
Using a function to format any list of PATHs
I have this alias to format $PATH into one line per path:
alias path='sed ''s/:/\\n/g'' <<< "$PATH"'
I tried to specify the env var to list, like path $MANPATH but still with a ...
1
vote
0
answers
36
views
VSCode debugpy launcher command not executing automatically in terminal after shell initialization commands
Problem
When launching a Python debug session in VSCode using debugpy, I see three commands spawned in the integrated terminal:
devbox shell - executes automatically ✓
source /path/to/project/.venv/...
0
votes
2
answers
70
views
How can I break a loop condition into multiple lines in a shell script?
Right now, this is working:
while read attribute_one attribute_two; do
read -r -d '' json_payload << EOF
{
"attribute_one": "${attribute_one}",
...
0
votes
0
answers
37
views
.NET MAUI Android: TabBar overlaps with Navigation Bar
I'm building a .NET MAUI app and facing an issue on Android — the TabBar (Shell tabs) overlaps with the system navigation bar at the bottom of the screen.
Here’s what happens:
The tabs are partially ...
2
votes
3
answers
148
views
How to pipe a data file with multiples read values to a bash script with a delay between them? It is possible to display the info read from file
This is my main script:
#!/bin/bash
read -p "Name: " NAME
read -p "Age: " AGE
read -p "Country: " COUNTRY
echo "Your name is $NAME. You are $AGE years old. You ...
1
vote
2
answers
72
views
How to conditionally add elements to an array in shell script
In the below shell script, I'm trying to conditionally add elements to an array which is syntactically incorrect when checked in shellcheck.
#!/bin/bash
echo "Hello World";
HH=1
ARR=(
&...
-2
votes
0
answers
18
views
Why does `bind -x` with Ctrl+O stop working after dropping to shell from `vifm` in Kitty terminal? [migrated]
bind -x '"\C-o":vifm'
This opens vifm but then when I drop down to the shell by pressing o on my keyboard triggering nnoremap o :shell<CR>, I am not able to use the ctrl + o keyboard ...
0
votes
2
answers
105
views
Running chain of commands through Python script [closed]
I am running the following command though a Python script:
tcsh -c 'cmd1 && cmd2 && cmd3 && cmd4'
Only the first command is getting executed or the first two commands are ...
0
votes
0
answers
64
views
AHK2 overlay only stays visible above taskbar when a file write triggers a refresh — any better alternatives?
I'm trying to keep a transparent always-on-top overlay (made in AHK v2) above the taskbar in Windows 10/11.
The Problem:
Everything works except when the Aero Peek / Show Desktop event fires (e.g. via ...
1
vote
2
answers
75
views
Ignore patterns not found in ex substitute command
POSIX.1-2017 specifies two line-oriented file editing utilities: ed(1) and ex(1). ex is more efficient for noninteractive batch-editing because POSIX requires it to accept one or more file operands, ...
0
votes
0
answers
18
views
macOS Automator Quick Action (Zsh script) using cpdf completes with success message but creates no output files
I am trying to create a macOS Quick Action that allows a user to select multiple chapters from a PDF's bookmarks and extract each one into a separate file. The script uses the cpdf command-line tool ...
0
votes
0
answers
39
views
"Nothing provides <recipe>" when running commands into a shell script [closed]
I am running these commands into an interactive shell:
export IS_OFFICIAL_RELEASE=0
export BB_ENV_PASSTHROUGH_ADDITIONS="$BB_ENV_PASSTHROUGH_ADDITIONS IS_OFFICIAL_RELEASE"
cd /home/yoctodev/...
0
votes
0
answers
43
views
Need help My script is throwing ERROR - Failed to load kubeclient or get node_list
I have a script where it checks for the cluster status and posts it to SREConsole by doing this we will be knowing about the cluster status. but i am seeing "ERROR - Failed to load kubeclient or ...