Re: tmpfiles.d and spaces in filenames

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

 



On 06/01/11 14:15, Patrick O'Callaghan wrote:
> On Wed, 2011-06-01 at 13:48 -0700, JD wrote:
>> On 06/01/11 12:39, Patrick O'Callaghan wrote:
>>> On Wed, 2011-06-01 at 12:18 -0700, JD wrote:
>>>> The quotes are not optional.
>>> Read my message again.
>>>
>>> poc
>>>
>> Did you read my samples of "use" ?
>> Did you see the difference when the quotes
>> were used and when the quotes were not?
> Of course I did. You're simply repeating what I said and you seem not to
> have read carefully. Once again: the quotes are necessary in the use of
> the variable.
>
> I also mentioned that in the specific application of "echo" as used in
> your example it didn't make much difference, though as Ian Malone has
> pointed out there is the case of multiple spaces in the name being
> collapsed to one. That's technically correct but it's a distinction
> without a difference for the example input you give*. I'm sorry I even
> brought it up if it's causing so much confusion.
>
> poc
>
Well here's what you said:

>  No, each filename counts as one argument, even if it has spaces in it.
>  The problem arises when you*use*  the argument. The above should read:
>
>  for i in *; do
>  [ -f "$i"]&&  echo "$i" is a file
>  done
>
>  (the quotes are optional in the echo case obviously).


Should have chosen a "use" other than echo :)

but I did indeed misread your post.

Cheers,

JD
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux