1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Remove code related to long-dead 3DFS research project

This commit gets rid of dead weight related to an obscure early
1990s Bell Labs versioning file system research project called
3DFS, which has not existed for decades and for which I have not
managed to find any evidence that it was ever used outside the lab.

This removes:
- the SHOPT_FS_3D compile option (which was forced on even when 0)
- the obnoxious default alias 2d='set -f;_2d' that turned off your
  globbing and then tried to run a nonexistent _2d command
- undocumented builtins 'vmap' and 'vpath' that only errored out
- a non-functional -V unary operator for the test and [[ commands
- some specific code for Apollo workstations (last made in 1997),
  which was inseparably intertwined with the 3DFS code

(cherry picked from commit 20cdf3709f4fb4e468057b534dcee819b1961fb6)
This commit is contained in:
Martijn Dekker 2020-06-08 03:28:36 +02:00
parent 5f8b0512f0
commit f88f302c38
19 changed files with 9 additions and 279 deletions

View file

@ -29,9 +29,6 @@
const struct shtable2 shtab_aliases[] =
{
#if SHOPT_FS_3D
"2d", NV_NOFREE, "set -f;_2d",
#endif /* SHOPT_FS_3D */
"autoload", NV_NOFREE, "typeset -fu",
"compound", NV_NOFREE|BLT_DCL, "typeset -C",
"float", NV_NOFREE|BLT_DCL, "typeset -lE",

View file

@ -121,10 +121,6 @@ const struct shtable3 shtab_builtins[] =
#ifdef _cmd_universe
"universe", NV_BLTIN|BLT_ENV, bltin(universe),
#endif /* _cmd_universe */
#if SHOPT_FS_3D
"vpath", NV_BLTIN|BLT_ENV, bltin(vpath),
"vmap", NV_BLTIN|BLT_ENV, bltin(vpath),
#endif /* SHOPT_FS_3D */
"wait", NV_BLTIN|BLT_ENV|BLT_EXIT, bltin(wait),
"type", NV_BLTIN|BLT_ENV, bltin(whence),
"whence", NV_BLTIN|BLT_ENV, bltin(whence),

View file

@ -169,12 +169,6 @@ const char e_alphanum[] = "[_[:alpha:]]*([_[:alnum:]])";
const char e_devfdNN[] = "/dev/fd/+([0-9])";
const char e_devfdstd[] = "/dev/@(fd/+([0-9])|std@(in|out|err))";
const char e_signo[] = "Signal %d";
#if SHOPT_FS_3D
const char e_cantget[] = "cannot get %s";
const char e_cantset[] = "cannot set %s";
const char e_mapping[] = "mapping";
const char e_versions[] = "versions";
#endif /* SHOPT_FS_3D */
/* string constants */
const char e_heading[] = "Current option settings";

View file

@ -118,10 +118,6 @@ USAGE_LICENSE
"user id of the current process.]"
"[+-R \avarname\a?True if \avarname\a is a name reference.]"
"[+-S \afile\a?True if \afile\a exists and is a socket.]"
#if SHOPT_FS_3D
"[+-V \afile\a?True if \afile\a exists and is a version "
"directory.]"
#endif /* SHOPT_FS_3D */
"}"
"[+?Binary expressions can be one of the following:]{"
"[+\astring1\a = \astring2\a?True if \astring1\a is equal to "

View file

@ -100,15 +100,9 @@ const struct shtable2 shtab_variables[] =
".sh.math", 0, (char*)0,
".sh.pool", 0, (char*)0,
"SHLVL", NV_INTEGER|NV_NOFREE|NV_EXPORT, (char*)0,
#if SHOPT_FS_3D
"VPATH", 0, (char*)0,
#endif /* SHOPT_FS_3D */
#if SHOPT_MULTIBYTE
"CSWIDTH", 0, (char*)0,
#endif /* SHOPT_MULTIBYTE */
#ifdef apollo
"SYSTYPE", 0, (char*)0,
#endif /* apollo */
"", 0, (char*)0
};