Home > Back-end >  echo .[!.]* displays an event not found error
echo .[!.]* displays an event not found error

Time:10-08

is there a problem with my Linux distribution? i tried to run this command using the ! symbol,but it always display an error:

echo .[!.]*  
zsh: event not found: .

Am using Kali Linux.

CodePudding user response:

Try changing the bash with exec bash

CodePudding user response:

Either escape the !

echo .[\!.]*

or use ^ instead

echo .[^.]*

Both avoid unintentionally triggering history expansion.

  • Related