aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/sd.sh
Commit message (Collapse)AuthorAgeFilesLines
* Tidy up comments for POSIX interactive scriptsTom Ryder2022-07-291-0/+1
|
* Add a cheeky error message to sd()Tom Ryder2018-12-311-0/+6
|
* Strip trailing slashes from sd() targetTom Ryder2018-12-311-0/+8
|
* Correct error message from sd()Tom Ryder2018-12-311-1/+1
|
* Two-space sentences in shell commentsTom Ryder2018-12-271-2/+2
|
* Use `command` consistently, silence ShellCheckTom Ryder2018-12-171-1/+2
| | | | | | | | | | ShellCheck (SC2164) is upset about these `cd` commands where the return type isn't being checked, but they're all by design, as they're the last command in the function, and thereby constitute the function's return value implicitly. Otherwise, this commit changes the shrc.d and profile.d subfiles to use the `command` wrapper only where it's actually needed.
* More error-resistant sd()Tom Ryder2017-05-271-28/+58
|
* Still tinkering with ?d.sh scriptsTom Ryder2017-05-261-2/+0
|
* Reimplement sd() without subshellTom Ryder2017-05-261-39/+41
|
* Work around newline-stripping in param expansionTom Ryder2017-01-021-2/+5
|
* Use opening parens for case safety in subshellTom Ryder2016-12-111-4/+4
|
* Remove some trailing whitespaceTom Ryder2016-10-191-1/+1
|
* Add comment to vague blockTom Ryder2016-08-231-0/+2
|
* Fix up ?d() functionsTom Ryder2016-08-231-8/+8
| | | | | | Count arguments in right places; return 2 on usage errors where possible; minimise subshell activity; move directory replacement functionality to its own function `rd()` rather than overloading `cd`.
* Remove apostrophe from comment to calm pdkshTom Ryder2016-08-211-1/+1
| | | | | To my considerable surprise, OpenPSD pdksh sees this apostrophe within this subshell wrapper as an *open quote*!
* Port sd() to POSIX shTom Ryder2016-08-201-0/+82