[Top][All Lists]

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

Re: Filename with whitespace

From: Noel Yap
Subject: Re: Filename with whitespace
Date: Wed, 05 May 2004 11:16:39 -0400
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

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


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]