Re: [OT] bashism (was: Re: Locale testing)

2008-12-07 Thread Tzafrir Cohen
On Sun, Dec 07, 2008 at 10:42:04AM +, Tzafrir Cohen wrote: > On Sun, Dec 07, 2008 at 01:47:29AM +0200, Dotan Cohen wrote: > > 2008/12/7 Boyd Stephen Smith Jr. <[EMAIL PROTECTED]>: > > > For maximum compatibility, that needs to be: > > > VAR=; export VAR > > > > Compatibility with what? > > Wi

Re: [OT] bashism (was: Re: Locale testing)

2008-12-07 Thread Tzafrir Cohen
On Sun, Dec 07, 2008 at 01:47:29AM +0200, Dotan Cohen wrote: > 2008/12/7 Boyd Stephen Smith Jr. <[EMAIL PROTECTED]>: > > For maximum compatibility, that needs to be: > > VAR=; export VAR > > > > Compatibility with what? With older posix, I believe. http://www.opengroup.org/onlinepubs/009695399/u

Re: [OT] bashism (was: Re: Locale testing)

2008-12-06 Thread Boyd Stephen Smith Jr.
On Saturday 2008 December 06 17:47, Dotan Cohen wrote: > 2008/12/7 Boyd Stephen Smith Jr. <[EMAIL PROTECTED]>: > > For maximum compatibility, that needs to be: > > VAR=; export VAR > > Compatibility with what? UNIX. The Single Unix Specification is maintained by the Open Group who certify UNIX p

Re: [OT] bashism (was: Re: Locale testing)

2008-12-06 Thread Kelly Clowers
On Sat, Dec 6, 2008 at 15:47, Dotan Cohen <[EMAIL PROTECTED]> wrote: > 2008/12/7 Boyd Stephen Smith Jr. <[EMAIL PROTECTED]>: >> For maximum compatibility, that needs to be: >> VAR=; export VAR >> > > Compatibility with what? sh, ash, dash, zsh, pdksh, etc. Cheers, Kelly Clowers -- To UNSUBSCR

Re: [OT] bashism (was: Re: Locale testing)

2008-12-06 Thread Dotan Cohen
2008/12/7 Boyd Stephen Smith Jr. <[EMAIL PROTECTED]>: > For maximum compatibility, that needs to be: > VAR=; export VAR > Compatibility with what? -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط

[OT] bashism (was: Re: Locale testing)

2008-12-06 Thread Boyd Stephen Smith Jr.
On Saturday 06 December 2008, Tzafrir Cohen <[EMAIL PROTECTED]> wrote about 'Re: Locale testing': >Off-topic: > >On Sat, Dec 06, 2008 at 10:06:36PM +0200, Dotan Cohen wrote: >> #!/bin/bash >> export LC_ALL="";export LC_TIME="en_DK.utf8";/us

Re: Bashism (Was: Locale testing)

2008-12-06 Thread Dotan Cohen
2008/12/6 Tzafrir Cohen <[EMAIL PROTECTED]>: > VAR="value" command > > will run 'command' with the variable VAR set to "value". > > This is why you get a strange error with the following: > > VAR=value with spaces > > It will complain about trying to run the command 'with spaces' (or > rather: co

Re: Bashism (Was: Locale testing)

2008-12-06 Thread Boyd Stephen Smith Jr.
On Saturday 06 December 2008, "Dotan Cohen" <[EMAIL PROTECTED]> wrote about 'Bashism (Was: Locale testing)': >I could probably google and find out why the semicolons are not >necessary, nor the export command, but why is the "exec" preferable? That way

Re: Bashism (Was: Locale testing)

2008-12-06 Thread Ken Irving
On Sat, Dec 06, 2008 at 11:42:38PM +0200, Dotan Cohen wrote: > 2008/12/6 Tzafrir Cohen <[EMAIL PROTECTED]>: > > This is bashism. > > > > That is why we call it "bash"! > > > #!/bin/sh > > LC_ALL="" LC_TIME="en_DK.utf8" /usr/bin/thunderbird "$@" > > > > Or even better: > > > > #!/bin/sh > > LC_ALL

Re: Bashism (Was: Locale testing)

2008-12-06 Thread Tzafrir Cohen
On Sat, Dec 06, 2008 at 11:42:38PM +0200, Dotan Cohen wrote: > 2008/12/6 Tzafrir Cohen <[EMAIL PROTECTED]>: > > This is bashism. > > > > That is why we call it "bash"! > > > #!/bin/sh > > LC_ALL="" LC_TIME="en_DK.utf8" /usr/bin/thunderbird "$@" > > > > Or even better: > > > > #!/bin/sh > > LC_ALL

Bashism (Was: Locale testing)

2008-12-06 Thread Dotan Cohen
2008/12/6 Tzafrir Cohen <[EMAIL PROTECTED]>: > This is bashism. > That is why we call it "bash"! > #!/bin/sh > LC_ALL="" LC_TIME="en_DK.utf8" /usr/bin/thunderbird "$@" > > Or even better: > > #!/bin/sh > LC_ALL="" LC_TIME="en_DK.utf8" exec /usr/bin/thunderbird "$@" > I could probably google and

Re: Locale testing

2008-12-06 Thread Tzafrir Cohen
Off-topic: On Sat, Dec 06, 2008 at 10:06:36PM +0200, Dotan Cohen wrote: > #!/bin/bash > export LC_ALL="";export LC_TIME="en_DK.utf8";/usr/bin/thunderbird "$@" This is bashism. #!/bin/sh LC_ALL="" LC_TIME="en_DK.utf8" /usr/bin/thunderbird "$@" Or even better: #!/bin/sh LC_ALL="" LC_TIME="en_DK

Re: Locale testing

2008-12-06 Thread Dotan Cohen
2008/12/6 thveillon.debian <[EMAIL PROTECTED]>: > my locales are set system wide to fr_FR.UTF-8, and Ooo3 is set to use the > system default in it's linguistic preferences, so if I type 22-11-2008 in > calc's cell it gives me 22/11/2008 in the edit bar, and 22/11/08 in the cell > (auto-formating).

Re: Locale testing

2008-12-06 Thread Dotan Cohen
2008/12/6 Sjoerd Hiemstra <[EMAIL PROTECTED]>: > Dotan Cohen wrote: >> I do know how to set the locales, but I want to see an app >> that shows that they are set correctly. Therefore I could conclude >> that Open Office is ignoring a correctly set locale and I could file >> an issue. > > The locale

Re: Locale testing

2008-12-06 Thread thveillon.debian
Dotan Cohen wrote : > Thanks. I do know how to set the locales, but I want to see an app that shows that they are set correctly. Therefore I could conclude that Open Office is ignoring a correctly set locale and I could file an issue. If you'd like to help me, seeing as you are using the ISO da

Re: Locale testing

2008-12-06 Thread Sjoerd Hiemstra
Dotan Cohen wrote: > I do know how to set the locales, but I want to see an app > that shows that they are set correctly. Therefore I could conclude > that Open Office is ignoring a correctly set locale and I could file > an issue. The locale setting for Open Office is in OO itself. Tools > Optio

Re: Locale testing

2008-12-06 Thread Dotan Cohen
2008/12/6 Kelly Clowers <[EMAIL PROTECTED]>: > On Sat, Dec 6, 2008 at 05:52, Dotan Cohen <[EMAIL PROTECTED]> wrote: >> I am having a hard time configuring my locale. Is there an application >> that will display a date, a currency value, a time, a large integer, a >> negative number, and some other

Re: Locale testing

2008-12-06 Thread Lisi Reisz
On Saturday 06 December 2008 13:52:04 Dotan Cohen wrote: > I am having a hard time configuring my locale. Is there an application > that will display a date, a currency value, a time, a large integer, a > negative number, and some other locale-related data such that I can > see how my system is con

Re: Locale testing

2008-12-06 Thread Kelly Clowers
On Sat, Dec 6, 2008 at 05:52, Dotan Cohen <[EMAIL PROTECTED]> wrote: > I am having a hard time configuring my locale. Is there an application > that will display a date, a currency value, a time, a large integer, a > negative number, and some other locale-related data such that I can > see how my s

Locale testing

2008-12-06 Thread Dotan Cohen
I am having a hard time configuring my locale. Is there an application that will display a date, a currency value, a time, a large integer, a negative number, and some other locale-related data such that I can see how my system is configured? Specifically, I want Open Office 3 and Thunderbird 2 to