• smb
    cake
    link
    fedilink
    English
    arrow-up
    19
    ·
    edit-2
    9 months ago
    man bash
     HISTCONTROL=ignorespace
     unset RANDOM
     RANDOM=4
     clear
    ...
    

    If RANDOM is unset, it loses its special properties, even if it is subsequently reset.

    HISTCONTROL If the list of values includes ignorespace, lines which begin with a space character are not saved in the history list.

    RTFM can save your server AND your bet ;-)

    it is cheating of course if the predefined rules tell us about such requirements and if these are not met any more when unsetting RANDOM ahead of it.

    UPDATE: added “man bash” to show how to rtfm and make the following leading space more visible