[Top][All Lists]

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

Re: Missing Something Obvious

From: Paul Smith
Subject: Re: Missing Something Obvious
Date: Mon, 14 Nov 2011 16:01:17 -0500

On Mon, 2011-11-14 at 15:14 -0500, Marc Smith wrote:
> I guess for maintenance reasons -- storing a shell command in a
> variable makes it easier to take care of if that shell command ever
> changes; that way I won't have to update the same shell command in X
> places. I can just modify it in one spot.

No one said you shouldn't use a variable.  By all means, DO use a
variable.  That's good stuff.

Just don't use the $(shell ...) function.

Like this:

        SHOWTIME = date
                @ $(SHOWTIME)
                @ sleep 10
                @ $(SHOWTIME)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]