sd -- a drop-in replacement for `cd'

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

50 most recent check-ins

2019-12-12 16:19
de-novo generation of `man.md' from sd's manpage using the newly added script `mkman.sh'. Leaf check-in: 278a59b06e user: vdh tags: trunk
2019-12-12 16:18
de-novo generation of `man.md' from sd's manpage using the newly added script `mkman.sh'. Leaf check-in: 129a43945a user: vdh tags: ksh
2019-12-12 16:18
de-novo generation of `man.md' from sd's manpage using the newly added script `mkman.sh'. Leaf check-in: cc736ffd49 user: vdh tags: mksh
2019-12-11 16:37
fix quoting. check-in: 5d61fbc7a2 user: vdh tags: trunk
2019-12-11 16:36
fix quoting. check-in: c099c7b0f5 user: vdh tags: ksh
2019-12-11 16:33
fix quoting. check-in: c4044ae8d8 user: vdh tags: mksh
2019-12-11 16:22
fix manpage by removing spurious quoting. check-in: c65cb11634 user: vdh tags: mksh
2019-11-22 14:36
small manpage adjustment. check-in: fd70480021 user: vdh tags: mksh
2019-11-19 14:51
manpage edit. check-in: 189f440b5d user: vdh tags: mksh
2019-11-19 14:51
manpage edit. check-in: ac4daf2bb4 user: vdh tags: ksh
2019-11-19 14:39
manpage edit. check-in: cee66b9d26 user: vdh tags: trunk
2019-11-19 12:49
use `"$@"' consistently. see checkin comment of the source for this cherry-pick on trunk. check-in: 3c738fd8d4 user: vdh tags: mksh
2019-11-19 11:56
use `"$@"' consistently. see checkin comment of the source for this cherry-pick. check-in: 6d206a717a user: vdh tags: ksh
2019-11-19 11:45
now consistently use `"$@"' instead of `"$*"' everywhere. this ensures that blanks in directory patterns do not call problems even when not quoted a) when using `sd' directly rather than via the default `cd' function (which _did_ quoting) and b) when IFS is set to IFS=$'\n' in the shell using `sd'. to handle the latter case `cd' redefined to use `"$@"' (unquoted `$*' should work, too) since otherwise \n would creep in at that point with `"$*"'. check-in: 559862e056 user: vdh tags: trunk
2019-11-17 17:55
eliminate bash/zsh-specific stuff since this branch does not work with bash/zsh anyway. check-in: 3799186fb5 user: vdh tags: ksh
2019-11-17 17:53
eliminate bash/zsh-specific stuff since this branch does not work with bash/zsh anyway. check-in: 659939e8db user: vdh tags: mksh
2019-11-17 17:50
reset OPTIND to 0 at each sdirs call to make it work with, both, bash as well as zsh. check-in: 2d42babf32 user: vdh tags: trunk
2019-11-17 14:38
follow all sensible recommendations from `ksh -n sd.ksh'. mostly concerns using, e.g., ((x = x + 1)) rather than x=$((x+1)) for numerical computations. check-in: 89eb880657 user: vdh tags: trunk
2019-11-17 14:17
follow all sensible recommendations from `ksh -n sd.ksh'. mostly concerns using, e.g., ((x = x + 1)) rather than x=$((x+1)) for numerical computations. check-in: 3038904ded user: vdh tags: ksh
2019-11-17 13:20
follow all sensible recommendations from `ksh -n sd.ksh'. mostly concerns using, e.g., ((x = x + 1)) rather than x=$((x+1)) for numerical computations. check-in: 90caeec42d user: vdh tags: mksh
2019-11-17 13:03
remove unused local variable. check-in: 10b3af3759 user: vdh tags: ksh
2019-11-17 13:00
manual cherrypick of some recent changes from mksh branch. mostly sdshellcheck related. check-in: 4c3b85eed4 user: vdh tags: trunk
2019-11-17 12:47
fixed a logical bug: the OR expr was executed for sdcount=0. it did not harm, though (redundantly setting sdcount=1...). but it definitely should be if/else. check-in: 31d74a31c1 user: vdh tags: trunk
2019-11-17 12:42
two cherrypicks (7874412, 930a415). check-in: 7458265c63 user: vdh tags: ksh
2019-11-16 00:15
avoid redundant interpolation of shell variables. check-in: 7874412d63 user: vdh tags: mksh
2019-11-15 17:54
fixed a logical bug: the OR expr was executed for sdcount=0. it did not harm, though (redundantly setting sdcount=1...). but it definitely should be if/else. check-in: 930a4158ef user: vdh tags: mksh
2019-11-15 09:05
avoid string concatenation in `sdclean' since this becomes really really slow with mksh. use indexed arrays instead for buffering the `sdlog' entries. check-in: 388f9dbd63 user: vdh tags: trunk
2019-11-14 17:38
spurious cherrypick merge from the same checkin. this does not introduces changes but fossil insists on a merge having happened etc. maybe there is another way to sort this out but for now we simply do an "empty" checkin. check-in: 4e5adf308e user: vdh tags: mksh
2019-11-14 17:32
avoid string concatenation in `sdclean' since this becomes really really slow with mksh. use indexed arrays instead for buffering the `sdlog' entries. check-in: 63b1a3057e user: vdh tags: mksh
2019-11-14 17:11
harmless regression: the change in [2fef24ca87] to `sdlogwrite' introduced afterwards a spurious empty first entry/line in `$sdlog' if `sdclean' was called since the latter so far did itself insert a leading newline into the new `$sdlog'. this has now been changed in `sdclean': $sdlog now should everywhere be void of leading or trailing newlines. check-in: 3069ea0a6a user: vdh tags: trunk
2019-11-14 17:10
harmless regression: the change in [2fef24ca87] to `sdlogwrite' introduced afterwards a spurious empty first entry/line in `$sdlog' if `sdclean' was called since the latter so far did itself insert a leading newline into the new `$sdlog'. this has now been changed in `sdclean': $sdlog now should everywhere be void of leading or trailing newlines. check-in: 478be7bc15 user: vdh tags: ksh
2019-11-14 17:08
harmless regression: the change in [2fef24ca87] to `sdlogwrite' introduced afterwards a spurious empty first entry/line in `$sdlog' if `sdclean' was called since the latter so far did itself insert a leading newline into the new `$sdlog'. this has now been changed in `sdclean': $sdlog now should everywhere be void of leading or trailing newlines. check-in: 1cef006a99 user: vdh tags: mksh
2019-11-14 16:51
tidy up a bit (sdshellcheck plus the on-exit trap). change sdmax default to my preference as defined in .kshrc in order not to be bitten by unintended dirv pruning in case sd.ksh is manually sourced during testing. check-in: 654fea6c54 user: vdh tags: ksh
2019-11-14 16:49
minor fix for use with tcsh. check-in: 87630be37e user: vdh tags: ksh
2019-11-13 22:10
tidy up a bit (sdshellcheck plus the on-exit trap). change sdmax default to my preference as defined in .kshrc in order not to be bitten by unintended dirv pruning in case sd.ksh is manually sourced during testing. check-in: bdaefcaa05 user: vdh tags: mksh
2019-11-12 20:22
minor fix for use with tcsh. check-in: 71944a48b5 user: vdh tags: mksh
2019-11-12 20:21
minor fix for use with tcsh. check-in: 3d5b6a29d5 user: vdh tags: trunk
2019-11-11 15:30
simplify `sdshellcheck`. check-in: 79cc80f014 user: vdh tags: trunk
2019-11-11 15:25
simplify `sdshellcheck'. check-in: 86546f2a53 user: vdh tags: ksh
2019-11-11 15:18
simplify `sdshellcheck'. check-in: 87964e0798 user: vdh tags: mksh
2019-11-11 14:08
typo. check-in: cc488731cd user: vdh tags: mksh
2019-11-11 14:03
small tidy up (we don't need to set `shellname' explicitely since we reject bash/zsh anyway here. check-in: b1add88d0c user: vdh tags: mksh
2019-11-11 14:01
small tidy up. check-in: 7e99ef4239 user: vdh tags: ksh
2019-11-11 13:58
avoid modifying bash/zsh behaviour (like on trunk) since were are not compatible with these shells here anyway. check-in: e54fc2e3ac user: vdh tags: mksh
2019-11-11 13:56
revised the check for sd-compatibility of the used shell. $0 does not always work for this purpose... check-in: bc1f7c6a4a user: vdh tags: ksh
2019-11-11 13:38
revised the check for sd-compatibility of the used shell. $0 does not always work for this purpose... check-in: f7c5987ec7 user: vdh tags: trunk
2019-11-11 13:32
revised the check for sd-compatibility of the used shell. $0 does not always work for this purpose... check-in: 5a7ce418a1 user: vdh tags: mksh
2019-11-10 16:53
unset no longer used function. check-in: 0d6fac7321 user: vdh tags: trunk
2019-11-10 16:53
unset no longer used function. check-in: 87a356eb9f user: vdh tags: ksh
2019-11-10 16:52
unset no longer used function. check-in: e7cbe48a13 user: vdh tags: mksh