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

Force using POSIX shell in extpkg.cl script #179

Merged
merged 2 commits into from
Jun 18, 2021

Conversation

olebole
Copy link
Member

@olebole olebole commented Jun 17, 2021

Some shells behave differently; namely zsh prints a warning itself when a glob doesn't match. This is f.e. the case when one tries to get the list of external packages from an empty dir with

printf ("!/bin/ls -1ad [a-y]* 2> /dev/null\n") | cl (,> dpkg)

With zsh, this leads to a message "no matches found" which disturbs f.e. the tests. See f.e. #178 (reply in thread) for such a failure.

The solution is to use !! in the cl script so that /bin/sh is forced to be used. Generally, the scripts provided by IRAF should be independent of the user's shell (just checked that this is the only place where this happens).

Some shells behave differently; namely zsh prints a warning itself
when a glob doesn't match.  This is f.e. the case when one tries to
get the list of external packages from an empty dir with

    /bin/ls -1ad [a-y]* 2> /dev/null

With zsh, this leads to a message "no matches found" which disturbs
f.e. the tests.

The solution is to use git add unix/hlib/extpkg.cl in
the cl script so that /bin/sh is forced to be used.
@olebole olebole merged commit a04fc84 into iraf-community:main Jun 18, 2021
@olebole olebole deleted the posix-shell branch June 18, 2021 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant