Here's a proper patch which does not require the shell to be set to bash.
Cheers, Kevin
--- Makefile.orig 2007-08-10 14:28:07.000000000 -0400 +++ Makefile 2007-12-11 23:59:19.000000000 -0500 @@ -86,8 +86,8 @@ $(IEEE80211_INC)) endif -IEEE80211_BASE := $(shell var=($(IEEE80211_RES)) ; echo $${var[1]}) -IEEE80211_PATH := $(shell var=($(IEEE80211_RES)) ; echo $${var[0]}) +IEEE80211_BASE := $(word 2,$(IEEE80211_RES)) +IEEE80211_PATH := $(word 1,$(IEEE80211_RES)) ifeq ($(IEEE80211_INC),) IEEE80211_SYM=${IEEE80211_BASE}/net/ieee80211 @@ -234,16 +234,16 @@ snapshot/make_legacy codingstyle: - for file in ipw3945.{c,h}; do \ + for file in ipw3945.c ipw3945.h; do \ indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs "$$file"; \ sed -i -e "s:\ *\$$::g" -e "s:\t*\$$::g" $$file; \ done clean: @[ ! -d util ] || make -C util clean || true - rm -f *.{mod.c,mod,o,ko,rej,orig} .*.{stamp,flags,cmd} .lst *.lst *~ + rm -f *.mod.c *.mod *.o *.ko *.rej *.orig .*.stamp .*.flags .*.cmd .lst *.lst *~ rm -rf $(DIR)/tmp $(DIR)/.tmp_versions Module.symvers Modules.symvers - for file in *.{c,h}; do \ + for file in *.c *.h; do \ sed -i -e "s:\ *$$::g" -e "s:\t*$$::g" $$file; \ done