AW: IFS and colour themes in shell scripts

Janis Papanagnou <[email protected]>
Newsgroups gmane.editors.vim.devel
Message-ID <AS2SPRMB0054A893A203BE5A7F430EA5F3D82@AS2SPRMB0054.eurprd05.prod.outlook.com>
Hi Hans

First to clarify; I assume by "IFS commands" you mean setting the IFS
variable by an assignation, say, like:  IFS=, read var

I'm using that pattern a lot in all POSIX compatible shells (sh, ksh, bash).
But I cannot reproduce what you describe.

Are you observing that only for (literally) 'sh' files or also for other shell
that are handled by "sh.vim", like ksh, bash, etc.?

Concerning your question about "alternatives to IFS"; that depends on
what you intend to do. I suggest to provide examples and discuss that
in Usenet (comp.unix.shell). As a short general answer; IFS is a central
parameter in the Unix shell to control the field-splitting, so it's hard to
replace its use or to work around that where you want to control field
splitting.

Janis

________________________________________
Von: 'Krupakar Hans' via vim_dev <[email protected]>
Gesendet: Sonntag, 16. August 2026 07:50
An: [email protected]
Betreff: Re: IFS and colour themes in shell scripts

This is also true for the read command.

Thanks,
Hans K

On Sun, Aug 16, 2026 at 4:35 AM Krupakar Hans <[email protected]<mailto:[email protected]>> wrote:
To whom it may concern,

The use of the IFS command in .sh files removes colour templates in the text over the commands and makes all of them strings from the next line. This makes writing them harder without commenting the IFS command before I can start to debug. Are there alternatives to IFS?

In contrast, github doesn't show the same theme pattern with IFS commands.

Thanks,
Hans K

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>.
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/CADG_t4LW5Njn_a9R%2Bmd3MwiVADNxsgPyKR4CWrqvbFjqo57t2w%40mail.gmail.com<https://groups.google.com/d/msgid/vim_dev/CADG_t4LW5Njn_a9R%2Bmd3MwiVADNxsgPyKR4CWrqvbFjqo57t2w%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/AS2SPRMB0054A893A203BE5A7F430EA5F3D82%40AS2SPRMB0054.eurprd05.prod.outlook.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.