Suppress printing methods in a piped script

Tamas_Papp
Mon, 14 Jul 2025 12:26:00 +0000
General Usage

I am writing a short script in Julia, which is piped in from an encompassing Bash script. I want to suppress printing of “f (generic function with 1 method)” outputs, as in

$ cat <<EOF | julia
> foo() = 1
> EOF
foo (generic function with 1 method)

but I want to keep stdout and stderr as is.

8 posts - 4 participants