Patrick Schleizer
2018-07-25 10:44:00 UTC
For example /usr/bin/xdg-open has some functions (search_desktop_file,
get_key) that look fine that I don't want to copy/paste [1] [2] in my
script.
feature request:
I would like to have a feature to tell bash "source --no-exec
/usr/bin/xdg-open" or so which ignores all commands outside of shell
functions and just imports the shell functions from /usr/bin/xdg-open.
Cheers,
Patrick
[1] avoids attributing copyright
[2] avoids duplicate code
get_key) that look fine that I don't want to copy/paste [1] [2] in my
script.
feature request:
I would like to have a feature to tell bash "source --no-exec
/usr/bin/xdg-open" or so which ignores all commands outside of shell
functions and just imports the shell functions from /usr/bin/xdg-open.
Cheers,
Patrick
[1] avoids attributing copyright
[2] avoids duplicate code