| Date: | 2010-08-17 09:46:50 (1 year 5 months ago) |
|---|---|
| Author: | Luciano Rocha |
| Commit: | 7a4c0da3cae702016a9d1a8e75394741612e7465 |
| Message: | vim: convert Perl::Module to module file |
| Files: |
rc/bash_functions (1 diff) |
Change Details
| rc/bash_functions | ||
|---|---|---|
| 456 | 456 | args=("${args[@]}" "$a") |
| 457 | 457 | continue |
| 458 | 458 | fi |
| 459 | ||
| 460 | if [ -z "${a##*::*}" ]; then | |
| 461 | # perl module, find source with the help of perldoc | |
| 462 | t=$(perldoc -l "$a" 2>/dev/null) | |
| 463 | if [ -n "$t" ]; then | |
| 464 | args=("${args[@]}" "$t") | |
| 465 | continue | |
| 466 | fi | |
| 467 | fi | |
| 468 | ||
| 459 | 469 | ## remove trailing ':', output by grep -n, for instance |
| 460 | 470 | aa="${a/%:}" |
| 461 | 471 | if [ "$aa" != "${aa%:[0-9]*}" ]; then |
