I have a few custom bash functions.
function hello() {
echo hello
}
function goodbye() {
echo goodbye
}
function wrapper() {
$1
}
From the terminal, if I call hello && goodbye
, I get
hello
goodbye
as expected.
But when I call wrapper "hello && goodbye"
, I only get
hello
I’ve been scratching my head over this for too long. Can someone tell me what I’m doing wrong?
1