diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-04-18 08:11:37 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-04-18 08:11:37 -0700 |
commit | 21c99d4de03c9a90115abdf24344bf4ecc79575c (patch) | |
tree | c008e248937b5c1a0b075090292c0fea38ead500 /sysif.c | |
parent | 7a2e3b99fa181385c8aff9cced40ff46602daf4d (diff) | |
download | txr-21c99d4de03c9a90115abdf24344bf4ecc79575c.tar.gz txr-21c99d4de03c9a90115abdf24344bf4ecc79575c.tar.bz2 txr-21c99d4de03c9a90115abdf24344bf4ecc79575c.zip |
configure: simplify shell viability test.
* configure: the golden trick is simply to test
whether PS4 contains "+ ". PS2 is not a useful variable,
because even crappy old 1980's vintage System V shells
set that up. It turns out that Zsh in POSIX mode (when run as
/bin/sh) handles configuring and building TXR just fine.
And Zsh does set PS4 to "+ " in that mode. However, it
does not set PS2, unless run interactively. When run
interactively as /bin/sh, Zsh sets PS2 to "> ".
So, let us drop the Bash variable tests, and the test
for PS2 being "> " and only test PS4.
Diffstat (limited to 'sysif.c')
0 files changed, 0 insertions, 0 deletions