More Tricks With BashDiff

“BashDiff adds commands that help you manipulate positional
parameters, often with much greater efficiency than the normal bash
routes. The pcursor command lets you manipulate the current
positional parameters as a single group, clearing them all and
storing and restoring them all from a stack. New commands prefixed
with pp_ help you manipulate the positional parameters themselves.
These commands all take an optional -a parameter to let you specify
the name of an array to use instead of working on the implicit
positional parameters array. For example, the normal bash command
to append to the positional parameters is shown below with the
BashDiff equivalent below it.”


Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis