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

[leafnode-list] Re: possible bug in leafnode-2.0.0.alpha?



"Bulgrien, Kevin" <Kevin.Bulgrien@xxxxxxxxxxxx> writes:

>> Sent: Friday, November 11, 2005 5:44 AM
>> To: leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> Subject: [leafnode-list] Re: possible bug in leafnode-2.0.0.alpha?
>  
>> root@linus:~# ls -l 
>> /var/spool/news/message.id/<slrndjmnkh.1eq.theo@xxxxxxxxxxxxxx>
>> -su: syntax error near unexpected token `newline'
>
> The above is not a valid command because there is a redirection symbol
> without
> a target.
>
> Try this or shortened variants instead as a permissioned user:
>
> # find /var/spool/news/message.id -name
> "*slrndjmnkh.1eq.theo@xxxxxxxxxxxxxx*"
>
>> > Perhaps this works too:
>> >
>> > find /var/spool/news -name '*slrndjmnkh.1eq.theo*' -ls
>
> This will not work with ' quotes as shell expansion is not done on the
> string
> when so quoted.  The following would have been valid.
>
> # find /var/spool/news/message.id -name "*slrndjmnkh.1eq.theo*"

Shell expansion is not done on glob characters within double quotes,
either, and therefore, both the single-quote and double-quote versions
will work identically.  You should pass these "*" characters unexpanded
to the 'find' command, because it interprets them internally.  Look at
"man find" for details.


-- 
 Lloyd Zusman
 ljz@xxxxxxxxxx
 God bless you.

-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/