bug-bash
[Top][All Lists]
Advanced

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

Fwd: Command execution by creating file.


From: LitHack
Subject: Fwd: Command execution by creating file.
Date: Wed, 21 Jun 2023 08:22:19 +0530

---------- Forwarded message ---------
From: LitHack <lithack0@gmail.com>
Date: Wed, Jun 21, 2023, 7:31 AM
Subject: Command execution by creating file.
To: <zsh-workers@zsh.org>


Special character '*' can be used to execute the command.
We have to just create a directory and make a file of any character or word
and then make alias of the command which we want to execute assigned with
created file. Now just type the * in terminal and you will that the command
be executed.
But why this happens, * (special character) is used for auto completion and
if used as alone it should just print the name of file why it's execute the
file name as command.
Command:mkdir dir;cd dir:<>file;alias file=ls -l;*


reply via email to

[Prev in Thread] Current Thread [Next in Thread]