SD Core for Linux LC2.0-0

Lower case

Commands, file names, record ids and account names are lower case now — and nothing you type has to change.

Everything that can be lower case is lower case, completely — no name exists in two casings. BASIC source is free-form and usually written lower case; file names, field names and account names are lower case as well.

What you type does not change. LIST, list and List all run the same verb, and so does every keyword — with, by, no.page and the rest.

The lookup rule#

SD tries a name as you typed it, then in lower case, then in upper case.

as typed  →  lower  →  upper

A name that matches exactly still wins, so nothing that works today changes. A name that exists in no case is still reported as not found.

This order is used everywhere: the parser, the query processor, run, the login paragraph lookup, and set.file's default qfile pointer.

What is spelled in lower case, and that is the whole of it#

Commands in the VOC list, count, select, create.file, setptr … and that is how they appear in list voc and ct voc
BASIC source and include records the gpl.bp programs and the syscom includes — all of them
System files on disk accounts, bp, bp.out, gpl.bp, messages, newvoc, pcode.out, syscom, voc, voc.dic, voc_template and the rest
Account names on disk sdsys/accounts/don, matching the account's own directory in user_accounts
Files in a new account created with lower-case names on disk

This is a completed migration, not an additive fallback that leaves old spellings behind it — every name in every ruled category is lower case. That includes the names of programs in the global catalog: catalog stores a name in lower case, and the loader finds an entry whichever case you type.

Record ids in your own data files are untouched, deliberately#

ext4 is case sensitive — a real difference from NTFS, which is not. On a Windows machine SUE and sue are already the same file, so lower-casing an application's own data cost nothing there. On Linux they are two different files, so forcing an application's own record ids to lower case would silently change its data. This is ruled out of scope on purpose: the lower-case migration covers SD's own system names — commands, VOC entries, source, account ids — never the records an application stores in its own files. What you put in your own data keeps whatever case you gave it.

Every file create.file makes treats record ids as case insensitive (there is no no.case or case word to give it): SD writes records preserving the casing given by whatever performs the write, and reads locate records regardless of casing.

An upgrade converts the files you already had, account by account, and leaves what it cannot convert safely: a file with two ids that differ only by case, an indexed file, a file outside its account's directory or under SDSYS, and SDSYS's own files. The walk is kept in /var/tmp/sdcore-install-nocase.log, which names each one. The mechanics are in Upgrading and uninstalling.

An upgrade also brings your VOC up to the release. update.accounts adds the records the release ships and takes out those on SD's deletion list (list.voc.removed shows them), as Upgrading and uninstalling describes.

One lookup order everywhere#

list and ct find a name the same way. list voc $hold finds the record ct voc $hold shows. list, sort, select and the rest of the query language use the same as-typed → lower → upper order as everything else.

Account names#

Account names have never been case sensitive and still are not. create.account, logto and the rest accept whatever case you type.

What changed is how the register file is named on disk: accounts are recorded in lower case, so sdsys/accounts/don matches the account's own directory on disk.

delete.file's refusal to delete voc and $acc no longer depends on the case you type. It could not be got round before, because those names were upper case — it could have been, once they are not.