Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: configure should check for bash 4.x or newer (for 'declare -A' support) #6

Closed
salewski opened this issue Jul 29, 2016 · 0 comments

Comments

@salewski
Copy link
Owner

This issue pertains to screen-wrappers-0.3.1 (the latest at the time of
writing).

Associative arrays (created with 'declare -A') were added in bash-4.0, and
programs such as 'screen-ls' that use them will bomb out with an error
status if invoked using some earlier version of bash:

    $ screen-ls
    /path/to/bin/screen-ls: line 257: declare: -A: invalid option
    declare: usage: declare [-afFirtx] [-p] [name[=value] ...]

The screen-wrappers 'configure' script should check not only for the
presence of bash (as it does currently), but also for a recent enough version
(major version 4 or newer, as reported in 'BASH_VERSINFO'). Alternatively,
there might be a way to perform a feature test so that any
"bash-looking-thing" could be used, but that might be more trouble than it is
worth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant