From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20522 invoked by alias); 19 Jan 2015 10:29:21 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34323 Received: (qmail 19002 invoked from network); 19 Jan 2015 10:29:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f5-b7fc86d0000066b7-65-54bcdc7be8c4 Date: Mon, 19 Jan 2015 10:29:10 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Command substitution parsing issues (not really Re: completion) Message-id: <20150119102910.18102a0b@pwslap01u.europe.root.pri> In-reply-to: <54B9D726.2020108@eastlink.ca> References: <54B9AA99.6080403@eastlink.ca> <150116185732.ZM30791@torch.brasslantern.com> <54B9D726.2020108@eastlink.ca> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKLMWRmVeSWpSXmKPExsVy+t/xa7rVd/aEGPT+YbQ42PyQyYHRY9XB D0wBjFFcNimpOZllqUX6dglcGXOmeRX84ahoa37A3MDYyN7FyMkhIWAicWbvWihbTOLCvfVs XYxcHEICSxklbuxaww7hLGGSeDH/HJSzjVHi/a0ONpAWFgFViekn9jKB2GwChhJTN81mBLFF BMQlzq49zwJiCwv4SBze/wXM5hWwl1i8uQ2shlNAW+Lj919gtpBApcSKK2vAavgF9CWu/v3E BHGSvcTMK2cYIXoFJX5MvgdWwyygJbF5WxMrhC0vsXnNW2aIOeoSN+7uZp/AKDQLScssJC2z kLQsYGRexSiaWppcUJyUnmukV5yYW1yal66XnJ+7iREStF93MC49ZnWIUYCDUYmHNyJrd4gQ a2JZcWXuIUYJDmYlEV7GC3tChHhTEiurUovy44tKc1KLDzEycXBKNTCuzr3pWsBozL3Qav2L 5yel9i77XV0bIGlWvmJBvfxy2QViYqpsS87sfPNxrcp9qWOlr9V4TxrJHqjp1zy2xmCBsZBh Q6POy9/ry0rurdlQ7tFsa7QhdttiHf2wbOGeiMpLlQIHRIyn+Bw2ikt+s7Rl7j7dP3985Q/v cFnM+yjsBdvChfY5Ci1KLMUZiYZazEXFiQCqOBXQOAIAAA== On Fri, 16 Jan 2015 19:29:42 -0800 Ray Andrews wrote: > > In fact if you're going to live on the bleeding edge of git pull, you > > should have a separate shared-object directory for every build. > > Can you suggest a method? I find it good enough to be able to point the compiled executable in Src at a special set of libraries by using an environment variable (you could even avoid that if you detected where the shell was running from early enough). The basic idea (the actual implementation has got complicated) is .zshenv contains if [[ -n $TEST_MODULES ]]; then module_path=(~/src/zsh/modules .) fi and the module links were set up with some variant of the function below. pws ## create_module_links local src=$1 local f if [[ -z $src ]]; then print "Usage: $0 path-to-zsh-src-dir Current directory is directory to create links (above zsh)." fi for f in $src/**/*.mdd~*/zsh.mdd; do lib=${f:r}.so [[ -f $lib ]] && print "Found $lib" name="${$(grep '^name=' $f)##name=}.so" print "Link for $lib is $name." mkdir -p ${name:h} ln -s $lib $name done ##