Fix #11: Add a reference to ASH_CFG_SYSTEM_QUERY_FILE env var when loading queries #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Without this, running
ash_query -Q
results in:FAILED TO FIND A FILE TO PARSE!
This is because the C version of
get_query
is looking for queries in/etc/ash/queries
and~/.ash/queries
, but not the default installationpath of
/user/local/etc/advanced-shell-history/queries
, which isreferenced in the
ASH_CFG_SYSTEM_QUERY_FILE
environment variable.This commit adds the file referenced by this environment variable to the
list of queries files to load.
Fixes #11