Skip to main content
0 votes
0 answers
28 views

I'm trying to translate my bash scripts using the gettext tools but I have a problem where the encoding seems to be wrong. Let's say I have the following file called fr.po: # French translations for ...
Elie G.'s user avatar
  • 1,784
0 votes
1 answer
79 views

I am attempting to compile and run a Fortran 90 program using command line (bash). In the past, when I've run gfortran /path/to/file, a file a.out and a file program_name are created, and I can run ...
JDoe's user avatar
  • 11
Best practices
0 votes
0 replies
36 views

I was trying to exercise with Bazel by packaging a deb package from a collection of scripts I'm writing to automate a few tasks at work. Right now, I keep them either in /usr/local/bin or \~/.local/...
Alessandro Bertulli's user avatar
Best practices
0 votes
1 replies
29 views

We've had troubes in the past trying to validate github environment against unset/empty secrets or variables. I've used bash scripts like [ -z "${{ secrets.mysecret }}" ] && exit 1; ...
some_random_dude's user avatar
1 vote
0 answers
70 views

I have a high memory program (ML) that I want to run in a tmux session. However, if the process is OOM killed, the tmux session is also shut down. I partially solved it (using the below run-bg), but ...
Awes's user avatar
  • 41
Best practices
0 votes
7 replies
106 views

Does Bash support local variables in POSIX mode? x=42 echo $x foo() { local x=43 echo $x } foo echo $x $ /bin/bash4 script 42 43 42 $ /bin/bash4 --posix script ?
Alexander Lubyagin's user avatar
-3 votes
0 answers
44 views

Encountering an issue where the access token is not generated at the intended instance when using a Linux VM with system-assigned managed identity to retrieve secrets from Azure Key Vault. This issue ...
Shruti Salunkhe's user avatar
2 votes
6 answers
388 views

My goal is to get a certain number of values between 1 and 50, a certain amount of times. It has to be randomly selected in [1-50] interval. I wrote this script but it runs awefully slow. I removed a ...
Freaka's user avatar
  • 97
4 votes
4 answers
112 views

How can I map an unknown value alongside other known values in bash using an associative array, so that: #!/bin/bash array=("foo" "foo" "bar" "something else" &...
Caio's user avatar
  • 75
2 votes
4 answers
128 views

I seem to be observing conflicting evidence regarding how the tty and the shell share responsibility for displaying user input. In the following interactive session, user input is no longer echoed to ...
merlin2011's user avatar
  • 76.4k
0 votes
2 answers
34 views

I have installed Firebase CLI on my Windows OS machine, I have activated FlutterFire CLI, and have added Dart’s global bin to my system PATH But when I run flutterfire --version command in my bash ...
JAMES's user avatar
  • 11
2 votes
1 answer
42 views

i create a script that is supposed to create a new workspace and that workspace launch four terminal each in given position with a command ran in it. this is the script.sh #!/usr/bin/env bash WS='9:...
oumaima's user avatar
  • 69
2 votes
1 answer
84 views

I have a bash script that turns off stdout and stderr when not run interactively (i.e. run from CRON). if [[ ! -t 0 && ! -t 1 ]]; then #echo "The script is not called ...
ballatom's user avatar
  • 209
1 vote
1 answer
60 views

Consider the following expect and bash scripts: spawn-bash.exp #!/usr/bin/env expect spawn bash stty raw -echo log_user 0 remove_nulls 0 expect { -i $spawn_id "?" { send_user -- [...
merlin2011's user avatar
  • 76.4k
1 vote
1 answer
76 views

I have a yaml file with an arbitrary amount of documents, and I'm trying to replace all missing namespaces for namespaceable resources with an arbitrary input one. Getting the non-namespaceable ...
Some Guy's user avatar
  • 809

15 30 50 per page
1
2 3 4 5
10459