zsh-workers
 help / color / mirror / code / Atom feed
* Command execution by creating file.
@ 2023-06-21  2:01 LitHack
  2023-06-21  3:40 ` LitHack
  0 siblings, 1 reply; 2+ messages in thread
From: LitHack @ 2023-06-21  2:01 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 522 bytes --]

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;*

[-- Attachment #2: Type: text/html, Size: 628 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Command execution by creating file.
  2023-06-21  2:01 Command execution by creating file LitHack
@ 2023-06-21  3:40 ` LitHack
  0 siblings, 0 replies; 2+ messages in thread
From: LitHack @ 2023-06-21  3:40 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 695 bytes --]

Sorry this mail have not correct info please let me correct it.

Thanks and regards.

On Wed, Jun 21, 2023, 7:31 AM LitHack <lithack0@gmail.com> wrote:

> 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;*
>

[-- Attachment #2: Type: text/html, Size: 1086 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-21  3:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-21  2:01 Command execution by creating file LitHack
2023-06-21  3:40 ` LitHack

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).