zsh errexit causes failed grep to exit #561

Open
opened 2025-12-29 01:27:19 +01:00 by adam · 0 comments
Owner

Originally created by @sevmonster on GitHub (Nov 28, 2021).

I noticed that my cert renewals were coming back with no output. I've managed to track it down to line 146. It appears that since shwordsplit isn't set in my environment, the grep fails, and the script exits. Turning off errexit for this line allows the script to continue. I do not experience this issue with Bash.

Originally created by @sevmonster on GitHub (Nov 28, 2021). I noticed that my cert renewals were coming back with no output. I've managed to track it down to [line 146](https://github.com/dehydrated-io/dehydrated/blob/784fb806c891979262eef9c8f38e3c10b825aefd/dehydrated#L146). It appears that since `shwordsplit` isn't set in my environment, the grep fails, and the script exits. Turning off `errexit` for this line allows the script to continue. I do not experience this issue with Bash.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#561