Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8566019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:33:40+00:00 2026-06-11T17:33:40+00:00

Im doing this that works fine utnso@utnso-vm:~$ read command ps -fea utnso@utnso-vm:~$ $command UID

  • 0

Im doing this that works fine

utnso@utnso-vm:~$ read command
ps -fea
utnso@utnso-vm:~$ $command
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 23:34 ?        00:00:02 /sbin/init
root         2     0  0 23:34 ?        00:00:00 [kthreadd]
root         3     2  0 23:34 ?        00:00:00 [ksoftirqd/0]
...

But when trying to run this command it fails…

utnso@utnso-vm:~$ read command
ps -fea | grep bash
utnso@utnso-vm:~$ $command
ERROR: Garbage option.
********* simple selection *********  ********* selection by list *********
-A all processes                      -C by command name
-N negate selection                   -G by real group ID (supports names)
-a all w/ tty except session leaders  -U by real user ID (supports names)
-d all except session leaders         -g by session OR by effective group name
-e all processes                      -p by process ID
T  all processes on this terminal     -s processes in the sessions given


   ...
    ...
    ...
    ...
                        ********* misc options *********
-V,V  show version      L  list format codes  f  ASCII art forest
-m,m,-L,-T,H  threads   S  children in sum    -y change -l format
-M,Z  security data     c  true command name  -c scheduling class
-w,w  wide output       n  numeric WCHAN,UID  -H process hierarchy

Does anybody know whats going on??

Thanx in advanced!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:33:41+00:00Added an answer on June 11, 2026 at 5:33 pm

    When your command line consists of a single parameter to be expanded, such as

    $ $command
    

    bash does the following:

    1. Expand the parameter, and perform word splitting on the result.
    2. Execute the first word as a simple command, passing the remaining words as arguments.

    That’s it. No further parsing of the expansion is done to process the result as any type of compound command or variable assignment or redirection.

    Anything more complicated needs to be passed to the the eval command, but only if you fully understand how eval works and know the security implications of evaluating an arbitrary string. In my opinion, eval should be considered a tool of last resort, not a convenience.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I am doing this: I have text that looks like: Hello ${user.name}, this
I'm doing this interface where I have a lot of buttons that are just
Update: I updated this after doing some digging and realizing that this might be
I would like a little confirmation that I'm doing this correctly. Using rails single
I can't seem to find anywhere that talks about doing this. Say I have
I am doing this: <div onclick='alert("xxx")'>Click me!</div> and I see that alert but I
Im not sure if I'm doing this right. I have an action that I
I have code that does a web-service request. While doing this request I need
Lets say that I have three tables, customers, orders and orderDetails. I'm doing this:
Is there any other method that is faster than doing like this? private void

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.