ndbroadbent/scm_breeze — Issue #3: SH_WORD_SPLIT needs setting for zsh with IFS
Author: jdelStrother
Created: 2011-10-20 10:41:22+00:00
State: open

Heya - at least in my zsh (4.3.9 (i386-apple-darwin10.0) on Snow Leopard), it seems that you need to run "setopt SH_WORD_SPLIT" before zsh will consider the IFS setting.

Without this, I'd run 'gs; gd 1', and was just getting :

```
fatal: failed to stat '/Users/jon/Developer/web/app/gui/gui/views/audioboo/follow_button_section.rb|/Users/jon/Developer/web/config/environments/development.rb|/Users/jon/Developer/web/deploy/lib/sphinx.rb|[..............................]': File name too long
```

- scm_breeze had just exported every filename concatenated with '|' into $e1.

Rather than messing with setopt environment, an alternative option would be to use ${=foo} - eg in git_status_shortcuts :

```
for file in ${=files}; do export $git_env_char$e="$file"; let e++; done
```

but I'm guessing that won't work in bash.

Any thoughts?