diff options
| author | Toby Goodwin <toby@paccrat.org> | 2017-04-17 21:23:44 +0100 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2017-04-17 21:32:33 +0100 |
| commit | d260301ae1c54fb68c0849e1895c0958f55942ef (patch) | |
| tree | a390f26f22e8b2ff56deba52359234ef85c8a0bf | |
| parent | 4ac92d8074388d1b9e70b0533469d1b82c71ba95 (diff) | |
improve lshift function in man page
| -rw-r--r-- | rc.1 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1869,9 +1869,9 @@ The builtin only shifts .Cr "$*" . This function can shift any variable (except -.Cr "$lshift" ). +.Cr "$_lshift" ). .Ds -.Cr "fn lshift { lshift=$*; *=$$1; shift $lshift(2); $lshift(1)=$* }" +.Cr "fn lshift { _lshift=$* *=$$1 { shift $_lshift(2); $_lshift(1)=$* } }" .De .PP With this definition in place, |