Deutsch English Français Italiano |
<vgp22t$268r$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.unix.shell Subject: Re: Splitting in shell (bash) Date: Sun, 10 Nov 2024 01:25:49 -0000 (UTC) Organization: A noiseless patient Spider Lines: 11 Message-ID: <vgp22t$268r$1@dont-email.me> References: <vgo225$91aq$1@news.xmission.com> <vgp03e$iqq$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 10 Nov 2024 02:25:50 +0100 (CET) Injection-Info: dont-email.me; posting-host="860fb7f0885981f730bd58417c4f37b9"; logging-data="71963"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18UTypGrUhbAVrVtyvMsR2K" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:KOgSI0ntQ7cyMJbS7ehFgFaCWi8= Bytes: 1300 On Sun, 10 Nov 2024 00:51:58 -0000 (UTC), Lem Novantotto wrote: > But you could have more using IFS. IFS is the way to go. If you want your change to IFS to be only temporary, you can restrict it to a subshell by putting the code sequence in “( ... )”. But then you cannot pass variables back to the parent shell. Another option is to use a coproc command.