FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 12-06-2008, 11:21 PM
Thilo Six
 
Default bashism

Dotan Cohen wrote the following on 07.12.2008 00:47

>> For maximum compatibility, that needs to be:
>> VAR=<value>; export VAR
>>
>
> Compatibility with what?

csh, mksh, busybox, dash, zsh, ash and probably more...

--
bye Thilo

key: 0x4A411E09


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-07-2008, 08:36 AM
Sven Joachim
 
Default bashism

On 2008-12-07 02:04 +0100, Boyd Stephen Smith Jr. wrote:

> On Saturday 2008 December 06 17:47, Dotan Cohen wrote:
>> 2008/12/7 Boyd Stephen Smith Jr. <bss03@volumehost.net>:
>> > For maximum compatibility, that needs to be:
>> > VAR=<value>; export VAR
>>
>> Compatibility with what?
>
> UNIX. The Single Unix Specification is maintained by the Open Group who
> certify UNIX products.

You should upgrade your specification. Susv3 explicitly mentions the
"export name=word" syntax as supported.

> In particular, Mac OS X is certified UNIX.

And installs bash as /bin/sh.

Sven


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-07-2008, 08:46 AM
Teemu Likonen
 
Default bashism

Thilo Six (2008-12-07 01:21 +0100) wrote:

> Dotan Cohen wrote the following on 07.12.2008 00:47
>>> For maximum compatibility, that needs to be:
>>> VAR=<value>; export VAR

>> Compatibility with what?
>
> csh, mksh, busybox, dash, zsh, ash and probably more...

dash supports "export VAR=VALUE" form.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-07-2008, 08:04 PM
"Boyd Stephen Smith Jr."
 
Default bashism

On Sunday 2008 December 07 03:36, Sven Joachim wrote:
> On 2008-12-07 02:04 +0100, Boyd Stephen Smith Jr. wrote:
> > On Saturday 2008 December 06 17:47, Dotan Cohen wrote:
> >> 2008/12/7 Boyd Stephen Smith Jr. <bss03@volumehost.net>:
> >> > For maximum compatibility, that needs to be:
> >> > VAR=<value>; export VAR
> >>
> >> Compatibility with what?
> >
> > UNIX. The Single Unix Specification is maintained by the Open Group who
> > certify UNIX products.
>
> You should upgrade your specification. Susv3 explicitly mentions the
> "export name=word" syntax as supported.

You are correct. Looks like the "export name=word" form has actually be
supported since "Issue 6".

Older systems might not like it, but I suppose that's a problem with them not
being up to date.
--
Boyd Stephen Smith Jr. * * * * * * * * * * ,= ,-_-. =.
bss03@volumehost.net * * * * * * * * * * *((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy * * * * * `-'(. .)`-'
http://iguanasuicide.org/ * * * * * * * * * * *\_/ * *
 

Thread Tools




All times are GMT. The time now is 07:42 AM.

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