On 2026-10-21, Greg Wooledge wrote:

>     IFS=:
>     [[ ":${x[*]}:" =~ ":$i:" ]] ...
>     unset IFS

Would it be safer to restore IFS ?
With something like

  OLDIFS=$IFS
  IFS=:
  ...
  IFS=$OLDIFS

or using local if within a function

Reply via email to