Re: PKGBASE Removes FreeBSD Base System Feature

From: vermaden <vermaden_at_interia.pl>
Date: Tue, 05 Aug 2025 14:01:40 UTC
The /bin/sh is good shell for scripts but terrible interactive shell. It does not even support basic stuff such as !! or !$ features.

% /bin/sh
f25 vermaden ~ $ ls /home
vermaden
f25 vermaden ~ $ cd !$
cd: !$: No such file or directory

% /bin/sh
f25 vermaden ~ $ ls /home
vermaden
f25 vermaden ~ $ doas !!
doas: !!: command not found

I would love to see ZSH imported into base as its MIT licensed ... but easier said then done.

Currently I use ZSH from packages and with this config it even has most/all fish(1) features:
https://vermaden.wordpress.com/2021/09/19/ghost-in-the-shell-part-7-zsh-setup/

The [T]CSH shell(s) at least support !! or !$ features - but terrible for scripting ...

Regards,
vermaden








Temat: Re: PKGBASE Removes FreeBSD Base System Feature
Data: 2025-08-05 5:33
Nadawca: "Sulev-Madis Silber" &lt;freebsd-current-freebsd-org111@ketas.si.pri.ee>
Adresat: freebsd-current@freebsd.org; 

> 
>> someone had creative idea to replace csh with sh without
porting "useless" features over. partial history search is one example.
thankfully csh is still there. i get that some people use bash everywhere
as interactive shell which i don't. funnily i can't even find way to
configure it in bash? i've always used that feature since 4.6 and i would
be surprised if answer is nobody needs that. it was added and enabled for a
reason. how come now we say it's not needed? sh got several interactive use
help features but who decided and what? i expect many fbsd users and dev
have used it way before 4.6. was it like bash all the way or...? noone even
used csh? the default? if so, why was the shell csh until now? why was it
even changed? and why was it changed to sh? granted, no other shells but.
maybe we could upgrade sh so you can also interactively actually use it.
but for now i just need to change it back
> 
> 
> p.s.: i also never got and never get why there's tendency to bully
users off of using some software. csh is one of them
> 
> 
> 
> On August 1, 2025 5:22:18 PM GMT+03:00, David Chisnall
 wrote:
> ...
>>[1] I’ve noticed on fresh installs, the default shell no longer has
working persistent history, which is a *big* POLA violation, if people want
to complain about something.
> 
> 
>