FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 06-25-2008, 01:33 PM
Lars Wirzenius
 
Default bashism question

ke, 2008-06-25 kello 09:18 +0100, Adam D. Barratt kirjoitti:
> As "foo=bar" is an argument "more complex than simple variables" and
> the
> example explicitly shows the use of local to declare the variable followed
> by assignment to it, my reading of policy is that "local foo=bar" is not
> permitted.

I was afraid of that. It makes using local doubly painful.

(Oh well, I'll add "shell function needs local variables" to my list of
indicators that I should really be writing in Python.)



--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-25-2008, 10:35 PM
Raphael Geissert
 
Default bashism question

Lars Wirzenius wrote:

> ke, 2008-06-25 kello 09:18 +0100, Adam D. Barratt kirjoitti:
>> As "foo=bar" is an argument "more complex than simple variables" and
>> the
>> example explicitly shows the use of local to declare the variable
>> followed by assignment to it, my reading of policy is that "local
>> foo=bar" is not permitted.
>
> I was afraid of that. It makes using local doubly painful.
>
> (Oh well, I'll add "shell function needs local variables" to my list of
> indicators that I should really be writing in Python.)

By the way, take a look at #473019

Cheers,
Raphael



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

Thread Tools




All times are GMT. The time now is 02:43 AM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org