• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Weird reply in Tiger vs. Leopard....is this a bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird reply in Tiger vs. Leopard....is this a bug?


  • Subject: Re: Weird reply in Tiger vs. Leopard....is this a bug?
  • From: Axel Luttgens <email@hidden>
  • Date: Thu, 17 Jan 2008 23:46:41 +0100

On 17/01/08 18:13, Jim Skibbie wrote:

OK- After a couple of days trying to sort this out, I can confirm that the
response in Leopard for the do shell script at least for "echo" is
definitely different than in Tiger. See the script snippet below and the
resulting event logs. You'll see that Leopard, the script returns only 20
characters where in Tiger, the same script returns 24.

[...]

I reported this to Apple (bug# 5688436)


I'm not sure one could really speak about a bug.

On leopard, you can get Tiger's behavior back with:

set arg to do shell script "shopt -u xpg_echo; echo " & quoted form of arg & " | ruby -p -e '$_.strip!'"

Remember that "do shell script" runs "sh", not "bash" (even if the former is emulated by the latter); it's interesting to run:

   do shell script "set"

and to notice, for example, "POSIXLY_CORRECT=y" in the output.

I guess that, given the trends towards POSIX compliance, your bug report will be closed as "works as intended" even if, of course, such changes may sometimes lead to painful unsuspected results...

Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Weird reply in Tiger vs. Leopard....is this a bug?
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Weird reply in Tiger vs. Leopard....is this a bug? (From: Jim Skibbie <email@hidden>)

  • Prev by Date: Re: Question on a script
  • Next by Date: Script Editor freaks out
  • Previous by thread: Re: Weird reply in Tiger vs. Leopard....is this a bug?
  • Next by thread: Re: Weird reply in Tiger vs. Leopard....is this a bug?
  • Index(es):
    • Date
    • Thread