python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Confused with `bash -c` command - does not work with global variables
I have two shell commands, actually the same snippet, when pasted them in the terminal:
This works:
while true; do \
sleep 1; \
ping -c 1 'www.google.com'; echo $?; \
if [ $? -eq 0 ]; then break; fi; ...
Santiago
Votes: 0
Answers: 1
How to assign a piped output as a variable while pipe is continuous
I want to update the download status at every 5 second of a downloading file to my telegram bot. Also here I'm using bash.
aria2c $url --summary-interval=5 2>&1 | tee output.log | grep -oP &quo...

sauraj
Votes: 0
Answers: 1
Global packages run fine but getting Command Not Found for locally installed packages
I just got a new M1 Mac, installed node with home-brew and am seeing globally installed packages working just fine but getting "zsh: command not found: (packagename)"for locally installed pa...
dagnabbit
Votes: 0
Answers: 1
How to use zsh vcs_info with double quoted prompt?
this is my .zshrc file . vcs_info working for single quoted prompt but it's not working for double quoted prompt.
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git svn
zstyle ':vcs_info:git*' form...
jak bin
Votes: 0
Answers: 2