• 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: Command line text substitution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command line text substitution


  • Subject: Re: Command line text substitution
  • From: John W Baxter <email@hidden>
  • Date: Fri, 17 Jan 2003 23:10:48 -0800
  • Envelope-to: email@hidden

At 7:21 -0500 1/17/2003, Paul Skinner wrote:
>Copy and pasted. Works in do shell script. That is tcsh right? The
>shell game is still very loose in my mind.

Actually, no. I think do shell script runs sh, which is much more
bash-like than tcsh like.

[john@Zeus john]$tcsh
[Zeus:~] john% a='I want AppleScript.' ; echo ${a/Apple/Pear}
Missing }.

Frankly, the } doesn't look missing to me. But it probably got absorbed
into the replacement string or something. It looks even less missing this
way: ;-)

[Zeus:~] john% a='I want AppleScript.' ; echo ${a/Apple/Pear
}}}}}}}}}}}}}}}}}}}}}}}}}}}}
Missing }.

--John (someone who knows tcsh can take over...I'm doing my best not to
learn it}

--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Command line text substitution
      • From: Doug McNutt <email@hidden>
References: 
 >Re: Command line text substitution (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: SCRIPTABLE PLUG-IN
  • Next by Date: Re: Long Int/One's compliment for Time_t
  • Previous by thread: Re: Command line text substitution
  • Next by thread: Re: Command line text substitution
  • Index(es):
    • Date
    • Thread