On 20 Mar 2012, at 09:53 , Axel Luttgens wrote:

> The double quotes in
> 
>       "$H_PATH/*"
> 
> preserve the literal value of character *.
> As a result, pathname expansion won't occur and the mv command will be 
> applied to a file named "*" located in directory 
> "/home/kreme/Maildir/.NotJunk/cur/" and that should be moved to directory 
> "/home/kreme/Maildir/cur/".
> If you want to keep the double quotes because you fear to encounter some 
> problematic characters in H_PATH, this one should be fine:
> 
>       "$H_PATH/"*

Ah, thank you. Yes, I am concerned about special characters in the path, as 
part of the path can be a [email protected] value and @ needs escaping and 'user' 
can contain all sorts of characters that need to be escaped.

-- 
'They think they want good government and justice for all, Vimes, yet
what is it they really crave, deep in their hearts? Only that things go
on as normal and tomorrow is pretty much like today.' --Feet of Clay

_______________________________________________
MacOSX-admin mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-admin

Reply via email to