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

File search to expand shell variables closes #1932 #1935

Conversation

GillesDuvert
Copy link
Contributor

file_search to expand shell variables... without breaking the other options.
example:
given that my $EDITOR is emacs, I have the files .emacs .emacs-places .emacs.d/ .emacs~ in $HOME.
So
ff=file_search('${HOME}/.${EDITOR}*',count=nf,/mark,/match_initial_dot
gives
/home/gildas/.emacs /home/gildas/.emacs-places /home/gildas/.emacs.d/ /home/gildas/.emacs~

the /mark etc options are honored by glob()
see #1932 for the discussion.

Tests welcome

…ptions.

example:
given that my $EDITOR is emacs, I have the files .emacs .emacs-places .emacs.d/ .emacs~ in $HOME.
So
ff=file_search('${HOME}/.${EDITOR}*',count=nf,/mark,/match_initial_dot)
gives
/home/gildas/.emacs /home/gildas/.emacs-places /home/gildas/.emacs.d/ /home/gildas/.emacs~
@GillesDuvert GillesDuvert merged commit 34444b6 into gnudatalanguage:master Dec 4, 2024
6 of 7 checks passed
@rsiddans
Copy link
Contributor

rsiddans commented Dec 4, 2024

Great job - we have pulled this update and it seems to work very well. Many thanks :-)

GillesDuvert added a commit to GillesDuvert/gdl that referenced this pull request Dec 13, 2024
@GillesDuvert GillesDuvert deleted the file_search_to_expand_shell_variables_issue_1932 branch December 16, 2024 12:56
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

Successfully merging this pull request may close these issues.

2 participants