You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use rush from within a shell script with a user defined bash function, but am getting the command not found: XYZ error.
test.sh
#!/bin/bash
run() {
echo $1
}
seq 5 | rush run {}
>>> ./test.sh
zsh:1: command not found: run
zsh:1: command not found: run
18:01:27.372 [ERRO] wait cmd #3: run 3: exit status 127
zsh:1: command not found: run
18:01:27.372 [ERRO] wait cmd #4: run 4: exit status 127
18:01:27.373 [ERRO] wait cmd #2: run 2: exit status 127
zsh:1: command not found: run
zsh:1: command not found: run
18:01:27.373 [ERRO] wait cmd #1: run 1: exit status 127
18:01:27.374 [ERRO] wait cmd #5: run 5: exit status 127
describe the problem
provide a reproducible example
The text was updated successfully, but these errors were encountered:
osheari1
changed the title
User defined functions
User defined shell functions
Nov 15, 2022
Prerequisites
rush -V
Describe your issue
I'm trying to use rush from within a shell script with a user defined bash function, but am getting the
command not found: XYZ
error.test.sh
The text was updated successfully, but these errors were encountered: