Sh: why exec does not work?

0 like 0 dislike
5 views
Please explain how the following code works.


#!/bin/sh


echo before

exec sh-c 'echo Test' | tee log

echo after
by | 5 views

1 Answer

0 like 0 dislike
Perhaps BASH DASH starts and checks the presence/performance.
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
asked Mar 24, 2019 by KriegeR
110,608 questions
257,186 answers
0 comments
28,875 users