On 02/20/2011 04:39 AM, Stefano Lattarini wrote:
>>> -      find "$$@" -type d '!' -perm -200 -exec chmod u+w {} ';'; \
>>> +      find "$$@" -type d ! -perm -700 -exec chmod u+rwx {} ';'; \
>>>        rm -rf "$$@"; \
>>>      fi;
>>
>> please don't remove the quoting from the ! here.  It exists to
>> facilitate copy and pasting commands from make output to the command
>> line,
>>
> Why would the quoting being useful for that?  As long as '!' is
> whitespace-separated from the following word, it's regarded by
> the shell as a literal character, even when the shell has history
> substutution enabled, no?  Or am I missing something?

You're missing history expansion.  ! is special in some interactive
shells when not in POSIX mode.  It's better to quote ! than to risk a
spurious history expansion.

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to