Sample Header Ad - 728x90

How to execute history command by number in Alpine Linux (busybox, ash)?

0 votes
1 answer
256 views
Is it possible to execute a history command by number with !###, similar to bash/zsh? Alpine's ash shell does not interpret this:
$ history
1441 date
1442 history

$ !1141
-sh: !1141: not found
Asked by anthumchris (161 rep)
Dec 7, 2024, 03:35 PM
Last activity: Dec 10, 2024, 07:13 AM