[Omake] Passing an empty argument to a command

Aleksey Nogin nogin at metaprl.org
Tue Oct 2 10:15:43 PDT 2007


On 02.10.2007 09:54, Alain Frisch wrote:

> My next stupid question: how to tell OMake to pass an empty argument to
> a command? Say, I have a bash script:
> 
> echo 1:$1
> echo 2:$2
> echo 3:$3
> 
> and I want it to print
> 
> 1:X
> 2:
> 3:Y
> 
> I've tried various variations around:
> 
> bash myscript.sh X "" Y
> 
> but I cannot find the solution (OMake seems to insist on removing empty
> arguments).

Alain,

The normal

bash myscript.sh X "" Y

does work for me with 0.9.8.5. Could you describe in more detail how
exactly it fails for you?

Other alternatives for an "empty" argument (which all work for me)
include things like $"$(EMPTY)", $(string $(EMPTY)), etc...

Aleksey


More information about the Omake mailing list