9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Why Plan 9 uses $ifs instead of $IFS?
@ 2017-10-17 14:38 Giacomo Tesio
  2017-10-17 14:39 ` Dan Cross
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Giacomo Tesio @ 2017-10-17 14:38 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 762 bytes --]

Out of curiosity, do anybody know why Plan9 designers chose lowercase
variables over uppercase ones?

At first, given the different conventions between rc and sh (eg $path is an
array, while $PATH is a string), I supposed Plan 9 designers wanted to
prevent conflict with unix tools relying to the older conventions.

However, I'm not sure this was the main reason, as this also open to subtle
issues: if a unix shell modifies $IFS and then invoke an rc script, such
script will ignore the change and keep using the previous $ifs.


As far as I can see, APE does not attempt any translation between the two
conventions, so maybe I'm just missing something obvious...


Do anyone know what considerations led to such design decision?


Giacomo

[-- Attachment #2: Type: text/html, Size: 877 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-10-17 22:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-17 14:38 [9fans] Why Plan 9 uses $ifs instead of $IFS? Giacomo Tesio
2017-10-17 14:39 ` Dan Cross
2017-10-17 15:05   ` Giacomo Tesio
2017-10-17 15:18     ` Charles Forsyth
2017-10-17 15:45       ` Giacomo Tesio
2017-10-17 16:04         ` Giacomo Tesio
2017-10-17 17:35           ` Dan Cross
2017-10-17 22:32           ` Tiago Natel
2017-10-17 16:00     ` Skip Tavakkolian
2017-10-17 16:22       ` Giacomo Tesio
2017-10-17 15:46 ` Teodoro Santoni
2017-10-17 18:28 ` Anthony Martin
2017-10-17 21:12   ` Jules Merit
2017-10-17 21:45     ` Jules Merit
2017-10-17 21:49       ` Jules Merit
2017-10-17 22:18         ` Charles Forsyth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).