Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ if (( ${#locks[@]} > 0 )) || [ -f .git/index.lock ]; then
fi
```

Explicit nullglob + array — works in any modern bash; portable to zsh too.
Explicit nullglob + array — works in any modern bash. **NOT portable to zsh**: `shopt` is a bash builtin (zsh uses `setopt`/`unsetopt` instead; zsh has its own `NULL_GLOB` option set via `setopt NULL_GLOB`). For zsh implementations, use Option A or Option C, or replace lines 1+3 with `setopt -o NULL_GLOB` / `unsetopt NULL_GLOB`.
Comment thread
AceHack marked this conversation as resolved.
Comment thread
AceHack marked this conversation as resolved.

### Option C — Inline `find` (fully portable)

Expand Down
Loading