#######################################################

Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -flto=auto -ffat-lto-objects -flto=auto
-ffat-lto-objects -fstack-protector-strong -Wformat
-Werror=format-security -Wall
uname output: Linux EliteBook 6.2.0-20-generic #20-Ubuntu SMP
PREEMPT_DYNAMIC Thu Apr  6 07:48:48 UTC 2023 x86_64 x86_64 x86_64
GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.2
Patch Level: 15
Release Status: release

#######################################################


Process substitution can be used in place of a file in a command line
as follows:

bash$ cat test.jl
for a in ARGS println(a) end

bash$ julia test.jl 11 22 33
11
22
33

bash$ julia <( cat <<\@
for a in ARGS println(a) end
@
) 11 22 33
11
22
33

However, in the above method, the 11 22 33 arguments are placed at the
end of the command line,
which is not good for readability. So writing the following would make
the command line much more readable,
but it would output unnecessary warning messages.

bash$ julia <( cat <<\@ ) 11 22 33
for a in ARGS println(a) end
@
bash: warning: command substitution: 1 unterminated here-document
11
22
33

Reply via email to