tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sh(1) and ksh(1) default PATH



Robert Elz wrote in
 <8853.1660590229%jacaranda.noi.kre.to@localhost>:
 |    Date:        Mon, 15 Aug 2022 10:45:59 -0400
 |    From:        Jan Schaumann <jschauma%netmeister.org@localhost>
 |    Message-ID:  <20220815144559.GO11880%netmeister.org@localhost>
 |
 || I think it's short-sighted and unfair to equate lack
 || of experience with idiocy.
 |
 |Then why did you jump to that conclusion?   That is neither
 |what I said, nor what I meant.
 |
 |There is no problem with inexperienced users, who are capable
 |enough to know they are inexperienced (which of itself says
 |very little) and who are willing to learn, and to recognise
 |that learning means work.
 |
 |The best way for such users to become experienced, is by doing
 |things, and that should start with the small things, of course,
 |for which solutions can fairly easily be discovered.
 |
 |So, for example if the shell were to not start with line editing
 |enabled (to borrow from one of the recent issues) a moron user
 |with complain about how useless it is, and moan a lot, and that's
 |about it.   A user who is merely inexperienced will wonder why
 |that is, and perhaps decide to have a look in the documentation for
 |the shell, which will tell them that "set -E" (or set -o emacs) or
 |set -V (or set -o vi) will enable it.   Then they'd try that, and
 |discover that it does work.   Next would be how to make that happen
 |automatically, so back to the man page to learn about the startup
 |scripts that the shell runs.

And the golden path is enabling.
Yeah, do not make turtle soup, let the turtles do smalltalk.
I just did

  --- a/home/.shrc
  +++ b/home/.shrc
  @@ -99,6 +99,7 @@ eval "___isinc=\$___SHRC$$"
            shopt -s expand_aliases
         elif [ "${OSTYPE}" = netbsd ]; then
            set -o cdprint -o emacs -o tabcomplete
  +         (set -o promptcmds) >/dev/null 2>&1 && set -o promptcmds
         fi
         export HISTSIZE HISTFILE

last saturday after creating my NetBSD 9.3 VM, because i was given
a hand.  (Iirc: again, and again, and again...-)

P.S.: i want to add i was sitting and saying your first two
sentences this afternoon (in German).

Thanks, and Ciao from Germany.  (That unfortunately sends lots of
military planes to your home country.)

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


Home | Main Index | Thread Index | Old Index