Hello, Just to follow up on whether existing init.sh works with Zsh or not -- it is dependent on what shell options are set or unset. Gary's patched version does not suffer from that problem (yay). For reference, I have also attached a version of my init.zsh that is updated to match what I think is the intent of the CVS version of init.sh (and I submitted the bug report, too).
# init.zsh # # To use the Fink hierarchy, read this file into your Zsh shell. You may prefer # to add the following line to a file such as ~/.zshenv or ~/.zshrc file (at # any location that suits your tastes, though one recommendation is to place it # near the very end of your ~/.zshenv): # . /path/to/init.zsh # # Copyright (C) 2003-4 James Devenish. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that: (a) redistributions of source code # must retain the above copyright notice, this list of conditions and the # following disclaimer; (b) redistributions in binary form must reproduce the # above copyright notice, this list of conditions and the following disclaimer # in the documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. export PATH=/sw/bin:/sw/sbin:${PATH:-/bin:/sbin:/usr/bin:/usr/sbin} export MANPATH=/sw/share/man:${MANPATH:-`/usr/bin/manpath -q`} export INFOPATH=/sw/share/info:/sw/info:${INFOPATH:-/usr/share/info:/usr/local/info} export PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin${PERL5LIB:+:}${PERL5LIB} if [[ -r /sw/share/java/classpath ]]; then CLASSPATH=$(</sw/share/java/classpath)${CLASSPATH:+:}${CLASSPATH} fi export CLASSPATH if [[ -r /usr/X11R6/bin ]]; then export PATH=$PATH:/usr/X11R6/bin fi if [[ -r /usr/X11R6/man ]]; then export MANPATH=$MANPATH:/usr/X11R6/man fi function fink_profile_d { setopt localoptions glob noshglob local i foreach i (/sw/etc/2profile.d/*.sh(*N)); do . $i done }; fink_profile_d PROXYHTTP=`grep ProxyHTTP /sw/etc/fink.conf | grep -v "#" | cut -d " " -f2` if [[ ! -z $PROXYHTTP ]]; then export HTTP_PROXY=$PROXYHTTP http_proxy=$PROXYHTTP fi PROXYFTP=`grep ProxyFTP /sw/etc/fink.conf | grep -v "#" | cut -d " " -f2` if [[ ! -z $PROXYFTP ]]; then export FTP_PROXY=$PROXYFTP ftp_proxy=$PROXYFTP fi typeset -U PATH MANPATH INFOPATH PERL5LIB CLASSPATH # EOF