- Timestamp:
- Feb 20, 2012, 2:44:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bundle/bundle.bash
r60 r61 4 4 5 5 case "$1" in 6 av ail)6 av|avail) 7 7 for d in ${folder} 8 8 do … … 15 15 ;; 16 16 17 lo ad)17 lo|load) 18 18 pack=$(find ${folder} -type f -a -name "*.${ext}" -print0 2> /dev/null | grep -FzZ "/$2.${ext}" | head -n 1 ) 19 19 if [ -f "${pack}" ] … … 39 39 ;; 40 40 41 un load)41 un|unload) 42 42 if [ ${_bundle_level} > 0 ] 43 43 then … … 49 49 ;; 50 50 51 sh ow)51 sh|show) 52 52 pack=$(find ${folder} -type f -a -name "*.${ext}" -print0 2> /dev/null | grep -FzZ "/$2.${ext}" | head -n 1 ) 53 53 if [ -f "${pack}" ] … … 60 60 ;; 61 61 62 li st)62 li|list) 63 63 if [ ${_bundle_level} > 0 ] 64 64 then … … 69 69 ;; 70 70 71 st atus)71 st|status) 72 72 if [ ${_bundle_level} > 0 ] 73 73 then … … 78 78 ;; 79 79 80 so urce)80 so|source) 81 81 pack=$(find ${folder} -type f -a -name "*.${ext}" -print0 2> /dev/null | grep -FzZ "/$2.${ext}" | head -n 1 ) 82 82 if [ -f "${pack}" ] … … 131 131 The arguments are quite the same. 132 132 There is no magic done on the current environment variables 133 and it's possible to export shell functions which is not possible width C<module>134 133 (remember, C<bundle> just source shell file). 135 134 … … 143 142 For the user point of vu, it's like there is only one shell! 144 143 145 But be carrefull wi dth variable,144 But be carrefull with variable, 146 145 only export variable could be use in sub-shell. 147 146
Note: See TracChangeset
for help on using the changeset viewer.