Bashism (Was: Locale testing)



2008/12/6 Tzafrir Cohen <tzafrir@xxxxxxxxxxxxx>:
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 find out why the semicolons are not
necessary, nor the export command, but why is the "exec" preferable?

--
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


Relevant Pages

  • how to print output of multiple exec commands in find on same line?
    ... I tried to google for this but no help. ... I am running the following find command with 2 instances of exec (the ... first prints the file ...
    (comp.unix.misc)
  • Supershell (Windows XP, VB)
    ... ctrl+windows and type the command. ... :> google pda technology (Will do the obvious, ... :> /database/library (opens the specified folder underneath the ...
    (comp.programming)
  • Supershell (Windows XP, VB)
    ... ctrl+windows and type the command. ... :> google pda technology (Will do the obvious, ... :> /database/library (opens the specified folder underneath the ...
    (microsoft.public.vb.general.discussion)
  • Re: No solution?
    ... I was finally able to run the wuforce command and load it but it made no ... I'll try some of the other google results. ... open Command prompt window. ... Faulting Application svchost.exe version 5.1.2600.2180 ...
    (microsoft.public.windowsxp.security_admin)
  • Re: how to execute commands.
    ... Am new to java. ... I recommend you try Google before posting here. ... I assume you are referring to Runtime.getRuntime.exec(Stringcommand), ... subprocess, or null if the subprocess should inherit the working ...
    (comp.lang.java.help)