IME, it's much, much easier to rename the files such that they don't have special characters like space.

Noel

Lars Kellogg-Stedman wrote:

Because space is a hard delimiter in the code.

A workaround I use is to define a variable like so (But this does not always work)

spc=$(x) $(x)


Thanks for the note...but I think you misread my posting. I already pointed out that this:

filename=two\ words

works just fine. There's no need to resort to a $(spc) variable when a simple backslash escape will work. However, the problem for which I am not aware of a solution is when you have files with names like:

  file one
  file two

And you want to perform wildcard expansion to get a list of these files:

files=$(wildcard file*)

This won't work.

-- Lars



_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make



_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to