🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux
Article #907146

Re: Przekierowanie inline - jak zabronić rozwijania zmiennych

#907146
From: heby
Date: Tue, 23 May 2023 21:52
17 lines
1374 bytes
On 23/05/2023 23:29, Konto58 wrote:
> Np. eskejpować znak specjalny?
>   \$here

Nie ;)

Znalazłem rozwiązanie.

some_command <<'END'
some stuff $here
END

Dodanie '' lub "" zabrania rozwijania zmiennych.

https://tldp.org/LDP/abs/html/here-docs.html

Example 19-7. Parameter substitution turned off
Technical Details
Message-ID: <u4jcig$2mo2t$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
References: <u4j690$2m2kl$1@dont-email.me> <20230523232903.403d8e51@fedora>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.chmurka.net!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: heby <heby@poczta.onet.pl>
Newsgroups: pl.comp.os.linux
Subject: Re: Przekierowanie inline - jak zabronić rozwijania
 zmiennych
Date: Tue, 23 May 2023 23:52:04 +0200
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <u4jcig$2mo2t$1@dont-email.me>
References: <u4j690$2m2kl$1@dont-email.me> <20230523232903.403d8e51@fedora>
MIME-Version: 1.0
Injection-Date: Tue, 23 May 2023 21:52:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a618fa6f93b15d957c960279a50973f4"; logging-data="2842717"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/EmVoBAYdN82bsGMDWEJtA"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
Cancel-Lock: sha1:1lrsjsyanDbAeXx/OAVVLl8Btdo=
In-Reply-To: <20230523232903.403d8e51@fedora>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit