[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash: bug report Here document and Command substitution
From: |
Yves Crespin |
Subject: |
bash: bug report Here document and Command substitution |
Date: |
Thu, 18 Jan 2001 11:18:28 +0100 |
$bash --version
GNU bash, version 2.03.0(1)-release (i386-slackware-linux-gnu)
Copyright 1998 Free Software Foundation, Inc.
$uname -a
Linux linux 2.2.13 #127 Thu Oct 21 13:13:20 CDT 1999 i686 unknown
Description: Here Documents and Command Substitution
The following syntax do not work (parse error).
echo $(cat <<-EOF
this is a )
EOF
)
This syntax work. But it's not following the Here document rule:
This type of redirection instructs the shell to read input
from the current source until a line containing only word
(with no trailing blanks) is seen.
echo $(cat <<-EOF
this is a space.
EOF)
______________________________________________________
Yves Crespin Quartz
39, rue Victor Hugo - Hameau du Pra - Cidex 322
38920 Crolles
Tél. : 04 76 92 21 91 Fax : 04 76 92 21 92
mailto:ycrespin@compuserve.com
______________________________________________________
- bash: bug report Here document and Command substitution,
Yves Crespin <=