Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: _multi_parts and -q



On Jun 18,  8:52pm, Peter Stephenson wrote:
} 
} _tst() {
}   local expl_type="stuff"
}   local -a datasetlist
}   datasetlist=(foo bar rod stuff)
}   local pref
}   [[ $PREFIX = */* ]] && pref=${PREFIX%/*} 
}   [[ -n $pref ]] && datasetlist=($pref/${^datasetlist})
}   _wanted dataset expl "$expl_type" _multi_parts -S/ -q / datasetlist;
} }                     
} 
} simply to get strings to compile.  I don't think that should matter.

I get Danek's reported behavior if the strings in datasetlist actually
contain the separator.  Try the above with

datasetlist=(xy/foo xy/bar yx/rod stuff xy/yx/xy)

So perhaps Danek's problem is with the input data?



Messages sorted by: Reverse Date, Date, Thread, Author