sh(1): -l is only valid in cli option not as set -l
(cherry picked from commit 0df81552d74d2c188a9323ffe18f6ebe799b86f9)