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

Re: two printcap entries for the same printer?



On Thu, Mar 28, 2002 at 01:38:41PM -0100, andrej hocevar wrote:
| On Wed, Mar 27, 2002 at 09:37:11AM -0600, dman wrote:
| > | echo $(girl_name) > /etc/dumpdates
| > 
| > Two problems here (I think) :
| >     '>' will overwrite the existing file, use '>>' instead
| >     $(...) executes the command '...' in a subshell; don't you mean
| >         ${...}?
| 
| (:--- A cynical note follows but don't take it too seriously ---:)
| 
| The former is not really a problem; suppose you have only one date
| at a time, then it's right to put only that one name into dumpdates,
| since this time you're dumping her and tomorrow you might dump
| someone else, right? There's no use in dumping somebody you've
| already dumped before, what are the odds of dating her again,
| anyway? So we need only one name at a time in the file. 

Design choice, I guess.  I thought you wanted to log the names.

| Thank you for the second explanation, though.

You're welcome.

| The braces are of course completely useless -- it's supposed to be a
| variable: today's date. Once I've written a script that dumped the
| next name in a database each time it was run. But then you wouldn't
| be in control of who you're dumping, right?
| 
| :)
 
-D

-- 

Whoever gives heed to instruction prospers,
and blessed is he who trusts in the Lord.
        Proverbs 16:20


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: