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

Bug#596809: xterm: command with error, cannot be repeated with up arrow



yellowprotoss <yellowprotoss@gmail.com> writes:
> I do this 
> # exec irpsion5 -s reboots.log 
> No IRDA device found

"exec" replaces the current shell with the new command. Its history is
lost. If you don't use "exec" you should be able to still access its
history.

> In stable, it works nicely those failed command and pressing up
> arrow on keyboard can show the bash history failed or not :(

I don't see this in stable. Here's a transcript:

lindi@sauna:~$ sh          ## I start a new subshell
sh-3.2$ exec false         ## I 'exec' a command that always fails
lindi@sauna:~$ sh          ## I have hit up, it surely does not show false in history.



Reply to: