You are not logged in.

#1 2006-06-21 00:10:51

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

backticks in PKGBUILD's

AUR guidelines say you can't have backticks in the PKGBUILD. Can someone explain to me why this is bad but commands in build() are ok? Or is it just AUR not playing nice them?

Offline

#2 2006-06-21 09:42:50

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: backticks in PKGBUILD's

The AUR doesn't parse the build function it parses vars outside - so we say no backtick execution, or similar, in those vars.  Please wink

Offline

#3 2006-06-22 15:52:57

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: backticks in PKGBUILD's

Penguin wrote:

AUR guidelines say you can't have backticks in the PKGBUILD. Can someone explain to me why this is bad but commands in build() are ok? Or is it just AUR not playing nice them?

Because backticks are more or less deprecated.  Use $(foo) instead for inline execution.

Heh, the real answer is what everyone else said - the AUR doesn't actually execute things.  But still, use $() in place of backticks.  The next installment of the POSIX shell standard will deprecate backticks.

Offline

#4 2006-06-22 21:34:15

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: backticks in PKGBUILD's

phrakture wrote:

Because backticks are more or less deprecated.  Use $(foo) instead for inline execution.

yeah, well aware of that.

The next installment of the POSIX shell standard will deprecate backticks.

good to know thanks.

Thanks all  smile

Offline

Board footer

Powered by FluxBB