Instead of trying to force a multi-line command, use another shell:
exec sh -c 'while true; do echo sleeping; sleep 1; done'
2.1m questions
2.1m answers
60 comments
57.0k users