Re: getting at raw command line

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

 



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 majordomo@xxxxxxxxxxxxxxx
> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Linux C Programming]     [Linux for Hams]     [DCCP]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux