From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Steve Talley <stephen.talley@sun.com>
Cc: zsh-users@sunsite.auc.dk
Subject: Re: Anonymous array indexing
Date: Wed, 13 Dec 2000 17:39:30 +0000 [thread overview]
Message-ID: <1001213173930.ZM12235@candle.brasslantern.com> (raw)
In-Reply-To: <20001213100537.P11810@rmtc>
On Dec 13, 10:05am, Steve Talley wrote:
} Subject: Re: Anonymous array indexing
}
} # Find a value for TERMINFO by looking for xterm package
} delegates=(5.9 5.8.1 5.8 5.7 5.6)
} terminfo=( $HOME/$^delegates/pkgs/xterm/lib/terminfo(/) )
} export TERMINFO=$terminfo[1]
} unset terminfo
}
} Unfortunately this doesn't work well with your solution, ie.
}
} export TERMINFO=${${=:-$HOME/$^delegates/pkgs/xterm/lib/terminfo(/)}[2]}
You've got two problems. One is that you're trying a file glob, which
isn't going to work in the same shell-word with TERMINFO= (unless you
resort to using `setopt globassign'). Two is that =:- is in the wrong
place.
For the second problem, you'd want
$HOME/${^${=:-5.9 5.8.1 5.8 5.7 5.6}}/pkgs/xterm/lib/terminfo(/)
You can get around the glob problem by using $(print ...), but I don't
know why avoiding a temp parameter would be important enough to fork a
new process.
export TERMINFO=${$(print \
$HOME/${^${=:-5.9 5.8.1 5.8 5.7 5.6}}/pkgs/xterm/lib/terminfo(/))[1]}
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
prev parent reply other threads:[~2000-12-13 17:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-13 1:41 Steve Talley
2000-12-13 4:04 ` Dan Nelson
2000-12-13 4:06 ` Bart Schaefer
2000-12-13 17:05 ` Steve Talley
2000-12-13 17:39 ` Bart Schaefer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1001213173930.ZM12235@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=stephen.talley@sun.com \
--cc=zsh-users@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).