Re: getting at raw command line

Gerardo García Peña <[email protected]> Thu, 13 Sep 2007 17:46:44 +0200
Newsgroups org.kernel.vger.linux-assembly
Message-ID <[email protected]>
Jack Andrews escribió:
> the shell changes arguments like * to a number of arguments.  is there
> a way to get the *?  that is, if my program is p, i want this
> behaviour:
>
>  $ ls
>  file.1 file.2
>  $ ls *
>  file.1 file.2
>  $ p file.1
>  file.1
>  $ p *
>  *
>
> i don't want
>
>  $ p *
>  file.1 file.2
> -
> To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   

Wildcard expansion is not responsability of Unix/Operating System... it
is done by the shell (bash)
if you try

ls '*'

you will get:

ls: *: No such file or directory

and if you try

p '*'
*

You can also escape wildcard expansion in these ways:

ls '*'
ls "*"
ls \*


luck,
ge

-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html