β¦at foo ); foo "`, the `$(cat foo )` part is evaluated in the outer `sh` process, so the actual argument your `sh` invocation is getting is:
```
$ /bin/sh -c "foo () {
printf "Hello World"
}; foo "
`β¦
matched #cwlpruq score:3.56
Search by:
β¦q) @adi Why does this nor work locally? π€
foo :
```
$ cat foo
foo () { printf "Hello World" }
```
And:
```
$ /bin/sh -c '$(cat foo ); foo '
/bin/sh: foo (): command not found
/bin/sh: foo : command not fβ¦
matched #5id23qa score:3.45
Search by:
Search by 1 mentions:
Search by 1 tags:
β¦e line?
```
$ cat foo
foo () { printf "Hello World" }
$ sh foo
foo [1]: syntax error: ```{' unmatched
```
```
$ cat foo
foo () {
printf "Hello World"
}
$ /bin/sh -c "$(cat foo ); foo "
```
Works well.
β¦
matched #uk2yfha score:3.43
Search by:
Search by 1 mentions:
Search by 2 tags:
(foo bar baz) @prologic But it doesn't give us a /conv/ page because 'foo bar baz' is obviously an invalid hash. Let me try something.
matched #arrquqq score:2.48
Search by:
Search by 1 mentions:
(foo bar baz) @mckinley Correct π
matched #pavjuqa score:2.32
Search by:
Search by 1 mentions:
FOLLOW: @foo from @foo using twtxt/0.1.0@9fdcb47
matched #xizodya score:2.32
Search by:
Search by 2 mentions: