zsh-workers
 help / color / mirror / code / Atom feed
From: LitHack <lithack0@gmail.com>
To: zsh-workers@zsh.org
Subject: Command execution by creating file.
Date: Wed, 21 Jun 2023 07:31:46 +0530	[thread overview]
Message-ID: <CADc_fS0b=6Aa6Bjw93ZEc0vOKLU15Y4jRMaxi8LCXeTMtic_Gg@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2023-06-21  2:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-21  2:01 LitHack [this message]
2023-06-21  3:40 ` LitHack

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADc_fS0b=6Aa6Bjw93ZEc0vOKLU15Y4jRMaxi8LCXeTMtic_Gg@mail.gmail.com' \
    --to=lithack0@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).