Strangeness in shell

Uri Blumenthal uri at arnor.UUCP
Fri Jul 21 04:01:26 AEST 1989


>From article <1643IA80001 at MAINE>, by IA80001 at MAINE.BITNET (George Newell):
> When you put the asterisk (*) on a line with spaces around it, the shell will
> substitute all the names in the current directory for it.  Apparently, when you
> included the letter after the asterisk and space, the shell interpreted the
> letter as a path name for the directory listing to print.  I hope this info
> helps.
> 
>
Disagree. Shell tries to substitute _special_ symbols. Means - when it
sees "normal" letter - it will echo it, simply. So the output of
   echo * x
will be:
  <current directory list> x

That's it.
-----------------------
<Standard Disclaimer>



More information about the Comp.unix.questions mailing list