Help tracking down a shell problem
andre at andregarzia.com
Thu Oct 20 15:12:07 CDT 2011
The terminal and the shell command are different beasts. On your mac, you
can check some hidden files:
For example, my .profile changes my locale $LANG var.
I think that .profile always load but .bash_profile and .bashrc only loads
then you launch a terminal, but I am guessing. Its been a while since I last
played this kind of game.
Anyway, the shell() executes stuff in "Mac OS X" graphical land, the
terminal is different. For example, IIRC applescript is not available when
the old engine was running on the terminal but was available if you shell().
Its the little things...
On Thu, Oct 20, 2011 at 6:02 PM, Pete <pete at mollysrevenge.com> wrote:
> Posted this a couple of days ago and have also been working with LC support
> on it but no joy.
> If you have a few minutes and are on a Mac, could you execute the following
> code and let me know the results:
> *put* line 1 of shell("defaults read .GlobalPreferences AppleLocale") into
> *put* uniDecode(uniEncode(shell("locale -k LC_NUMERIC"), "utf8"))
> I'm getting different results in LC than executing the same shell commands
> in Terminal. I get:
> If I execute the same locale command in Terminal, the output looks like:
> If you could let me know the OS X and LC versions too, that would be great.
> I'm on OS X 10.6.8 and LC 4.6.3
> Molly's Revenge <http://www.mollysrevenge.com/>
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.
More information about the use-livecode