[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] feature request: source a script with executing anything
From: |
Patrick Schleizer |
Subject: |
[Help-bash] feature request: source a script with executing anything |
Date: |
Wed, 25 Jul 2018 10:44:00 +0000 |
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
- [Help-bash] feature request: source a script with executing anything,
Patrick Schleizer <=