source:
trunk/essentials/app-shells/bash/examples/scripts.noah/string.bash@
3230
| Last change on this file since 3230 was 3228, checked in by , 19 years ago | |
|---|---|
| File size: 5.0 KB | |
| Line | |
|---|---|
| 1 | # string.bash --- bash emulation of string(3) library routines |
| 2 | # Author: Noah Friedman <[email protected]> |
| 3 | # Created: 1992-07-01 |
| 4 | # Last modified: 1993-09-29 |
| 5 | # Public domain |
| 6 | |
| 7 | # Conversion to bash v2 syntax done by Chet Ramey |
| 8 | |
| 9 | # Commentary: |
| 10 | # Code: |
| 11 | |
| 12 | #:docstring strcat: |
| 13 | # Usage: strcat s1 s2 |
| 14 | # |
| 15 | # Strcat appends the value of variable s2 to variable s1. |
| 16 | # |
| 17 | # Example: |
| 18 | # a="foo" |
| 19 | # b="bar" |
| 20 | # strcat a b |
| 21 | # echo $a |
| 22 | # => foobar |
| 23 | # |
| 24 | #:end docstring: |
| 25 | |
| 26 | ###;;;autoload |
| 27 | function strcat () |
| 28 | { |
| 29 | local s1_val s2_val |
| 30 | |
