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

Re: Problems with ~ and ~~



+ DaVinci <bombadil@wanadoo.es>:

|  When trying:
| 
|  	; a = {~~ (foo.c foo.x bar.h) *.[ch]}
| 	; echo $a
| 
|  I get:
| 
|  	{~~ (foo.c foo.x bar.h) *.[ch]}
| 
|  Is this normal?.

Yep.


Oh, you wanted a more detailed answer?  Try this:

; a = <={~~ (foo.c foo.x bar.h) *.[ch]}
; echo $a
foo c bar h

You only assigned a command to a.  The <= in front evaluates the
command and substitutes the result in the command line.

- Harald