RE: Should "exec" run a shell function?

2017-07-16 Thread Shware Systems
This could be construed, perhaps, as an exec of sh -c "function body". The effect, in intent, I think would be similar to using exec ./script to invoke the shell indirectly, or to utilities implemented as scripts built-in to the shell. On Sunday, July 16, 2017 Martijn Dekker

Re: Capturing standard error using command substitution and redirection

2017-07-16 Thread Martijn Dekker
Op 03-07-17 om 15:18 schreef Joerg Schilling: > In our case, it is doubtful whether something like: > > var=value > > allows IO redirection at all, as there is no command. Note that we recently > discovered that var=$(cmd) does not set $? because there is no regular > command. > >