Bash sürüm 4.2.47 (1) -daha gibi bir HERE-dcoument gelen biçimlendirilmiş metin katenate çalıştığınızda:
cat <(fmt --width=10 <<FOOBAR
(I want the surrounding parentheses to be part of the HERE-document)
(Even the preceding unbalanced parenthesis should be part of it.
FOOBAR
) # I want this paranthesis to end the process substitution.
Aşağıdaki hatayı alıyorum:
bash: bad substitution: no closing `)' in <(fmt --width=10 <<FOOBAR
(I want the surrounding parentheses to be part of the HERE-document)
(Even the preceding unbalanced parenthesis should be part of it.
FOOBAR
)
Ayrıca BURADA belgeyi alıntılamak istemiyorum, yani yazmak <'FOOBAR', çünkü hala değişkenlerin yerine ikame edilmesini istiyorum.
(Evenile "(Even"çalışıyor. Aynı \(Even. Ayrıştırma hatası gibi görünüyor. Bash, bu dokümanı okuma bağlamında da kaşlı ayraçlar ararken hala bir bağlamda ve her iki bağlam da birbiriyle çelişiyor.
bash, tesadüfen 4.3'te düzeltildi .
catAramaya gerçekten ihtiyacınız var mı? Neden aramada bırakmıyorsunuzfmt?