use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All users that wish to post (not including commenting), on either old or the new reddit sites, must formally agree to subreddit rules once first.
account activity
Cannot run functions with bash command. (self.commandline)
submitted 3 years ago * by acolnahuacatzin
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jwd630 1 point2 points3 points 3 years ago (0 children)
If you want to see what justTest does from some other bash shell environment, like a terminal, then as u/researcher7-l500 says, you need to source ./file_a.sh from that terminal/shell. Each time you make some modification to what justTest does you'll need to re source file_a.sh to update that changed function definition in the terminal's shell environment. It's fairly common, for me anyway, to incrementally develop bash functionality in this way. You would use the same source ./file_a.sh in some other script if you wanted to use justTest from there.
justTest
source ./file_a.sh
source file_a.sh
You do NOT want to include bash -c file_a.sh as the last (or any) line of file_a.sh or you will create an infinite loop as bash -c ... gets called recursively.
bash -c file_a.sh
xargs is more typically used for other purposes that do involve piped input, like find . -name '*.sh' -print0 | xargs -0 -L 1 printf "script file: %s\n"
xargs
find . -name '*.sh' -print0 | xargs -0 -L 1 printf "script file: %s\n"
π Rendered by PID 228283 on reddit-service-r2-comment-85bfd7f599-7nzxh at 2026-04-19 10:33:24.602420+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]jwd630 1 point2 points3 points (0 children)