The subshell tag has no wiki summary.
15
votes
2answers
815 views
What happens when we type a simple command on shell? [duplicate]
I have a simple doubt on execution of a simple command. As per my understanding, when we type a command such as ls on interactive shell,
Shell interpretes the command.
Shell creates a child process ...
13
votes
5answers
449 views
Stateful bash function
I’d like to implement a function in Bash which increases (and returns) a count with every call. Unfortunately this seems non-trivial since I’m invoking the function inside a subshell and it ...