M
M
maashaa2010-12-23 00:39:29
PowerShell
maashaa, 2010-12-23 00:39:29

sh: why exec doesn't work?

Please explain how the following code works.
#!/bin/sh
echo before
exec sh -c 'echo Test' | tee log
echo after

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jazzist, 2010-12-23
@Jazzist

Perhaps from BASH it launches DASH and checks for its presence / operability.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question