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

@ -93,9 +93,6 @@ extern int b_umask(int, char*[],Shbltin_t*);
#ifdef _cmd_universe
extern int b_universe(int, char*[],Shbltin_t*);
#endif /* _cmd_universe */
#if SHOPT_FS_3D
extern int b_vpath(int, char*[],Shbltin_t*);
#endif /* SHOPT_FS_3D */
extern int b_wait(int, char*[],Shbltin_t*);
extern int b_whence(int, char*[],Shbltin_t*);
@ -140,12 +137,6 @@ extern const char e_direct[];
extern const char e_defedit[];
extern const char e_cneedsarg[];
extern const char e_defined[];
#if SHOPT_FS_3D
extern const char e_cantset[];
extern const char e_cantget[];
extern const char e_mapping[];
extern const char e_versions[];
#endif /* SHOPT_FS_3D */
/* for option parsing */
extern const char sh_set[];
@ -192,10 +183,6 @@ extern const char sh_optwait[];
extern const char sh_optuniverse[];
#endif /* _cmd_universe */
extern const char sh_optunset[];
#if SHOPT_FS_3D
extern const char sh_optvpath[];
extern const char sh_optvmap[];
#endif /* SHOPT_FS_3D */
extern const char sh_optwhence[];
#endif /* SYSDECLARE */
extern const char sh_opttimes[];

View file

@ -91,21 +91,5 @@
#define SH_MATHNOD (shgd->bltin_nodes+61)
#define SH_JOBPOOL (shgd->bltin_nodes+62)
#define SHLVL (shgd->bltin_nodes+63)
#if SHOPT_FS_3D
# define VPATHNOD (shgd->bltin_nodes+64)
# define NFS_3D 1
#else
# define NFS_3D 0
#endif /* SHOPT_FS_3D */
#if SHOPT_VPIX
# define DOSPATHNOD (shgd->bltin_nodes+64+NFS_3D)
# define VPIXNOD (shgd->bltin_nodes+65+NFS_3D)
# define NVPIX (NFS_3D+2)
#else
# define NVPIX NFS_3D
#endif /* SHOPT_VPIX */
#ifdef apollo
# define SYSTYPENOD (shgd->bltin_nodes+63+NVPIX)
#endif /* apollo */
#endif /* SH_VALNOD */