command line history broken in 11.0
Polytropon
freebsd at edvax.de
Tue Mar 21 16:53:14 UTC 2017
On Tue, 21 Mar 2017 17:31:25 +0100, Bernt Hansson wrote:
> On 2017-03-21 14:56, Ernie Luzar wrote:
> > Trond Endrestøl wrote:
> >> On Mon, 20 Mar 2017 14:05-0400, Ernie Luzar wrote:
> >>
> >> Wouldn't it be more practical to reverse your aliases and change the
> >> conjunctions to unconditional sequences?
> >>
> >> alias sd "shutdown now; exit"
> >> alias sdp "shutdown -p now; exit"
> >> alias rboot "reboot; exit"
> >> alias stop "halt; exit"
> >>
> >
> > Tested your suggestion and it had no effect on the problem.
> >
> > I also tried this variation
> > alias rboot "exit && sleep 5 && reboot"
> > and it also had no effect on the problem.
> >
> > Does anyone know if reboot/halt had any changes between 10.3 and 11.0?
>
> What is that exit stuff?
It exits the shell, and when it has successfully (!) done that,
then it waits 5 seconds and finally reboots. However, how does
the shell do that if it has been exited?
> I would have set it this way.
>
> alias rboot "shutdown -r now or time"
In my WindowMaker configuration, I have set the following command
for system shutdown:
xterm -class SHUTDOWN -fg black -bg red -e "shutdown -p now; read DUMMY"
It is associated with the Ctrl+Alt+Moon key combination (Sun USB
type 7 keyboard). For a reboot, a similar command could be used,
just with -r instead of -p.
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions
mailing list