How to prevent History Expansion in tcsh Shell?
Issue
-
Enclosing a string in single quotes fails to prevent History Expansion in tcsh Shell
# history | tail 1 15:52 echo $? 2 15:52 echo $0 3 15:52 echo test 4 15:52 history | tail # echo test!3test 3test: Event not found. # echo 'test!3test' 3test: Event not found.
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- tcsh
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.