bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unnecessary bash warning message


From: Hyunho Cho
Subject: Unnecessary bash warning message
Date: Mon, 8 May 2023 11:06:43 +0900

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

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

[Prev in Thread] Current Thread [Next in Thread]