zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Qarras <dqarras@yahoo.com>
To: zsh-workers@sunsite.dk
Subject: Re: PATCH: _module
Date: Tue, 27 Mar 2007 11:58:30 -0700 (PDT)	[thread overview]
Message-ID: <611422.77772.qm@web36814.mail.mud.yahoo.com> (raw)
In-Reply-To: <20070314211105.GA24978@scowler.net>

[-- Attachment #1: Type: text/plain, Size: 537 bytes --]

Hi,

as some of you might know, there are two implementations of the Modules
system, C and Tcl versions. They should be compatible and I had done my
testing with C version but now I happened to try also the Tcl version.
It turned out that the attached small patch was needed.

Please apply, sorry for the inconvenience.

Thanks!


 
____________________________________________________________________________________
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 3112873836-_module.patch --]
[-- Type: text/x-patch; name="_module.patch", Size: 539 bytes --]

--- zsh/Completion/Unix/Command/_module.orig
+++ zsh/Completion/Unix/Command/_module
@@ -85,7 +85,7 @@
 {
   if (( [[ -n "$MODULEPATH" ]] && [[ ${+_available_modules} -eq 0 ]] ));
   then
-    _available_modules=($(find ${(e)=MODULEPATH//:/ } -xtype f -print 2>/dev/null | grep -v \.version | sed -e 's,\('${${(e)=MODULEPATH//:/\/\\\|}%\\\|}'\),,g'))
+    _available_modules=($(find ${(e)=MODULEPATH//:/ } -xtype f -print 2>/dev/null | grep -v \.version | sed -e 's,\('${${(e)=MODULEPATH//:/\/\\\|}%\\\|}'\),,g' -e 's,^/*,,g'))
   fi
 }
 

      parent reply	other threads:[~2007-03-28  0:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-14 21:11 Clint Adams
2007-03-14 21:25 ` Daniel Qarras
2007-03-24  9:04 ` Daniel Qarras
2007-03-27 18:58 ` Daniel Qarras [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=611422.77772.qm@web36814.mail.mud.yahoo.com \
    --to=dqarras@yahoo.com \
    --cc=zsh-workers@sunsite.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).