• 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: Color coding problem in C shell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Color coding problem in C shell


  • Subject: Re: Color coding problem in C shell
  • From: Michael Collier <email@hidden>
  • Date: Wed, 14 Jun 2006 17:40:18 -0700

Hi Steve,

Thanks for the suggestion. Unfortunately I can't put the space in because it breaks the file being written to by the echo command. I did try two back slashes ( based on a suggestion in an off list email ) instead of one and that did the trick. The echo command works the same with two backslashes as one. That is:

echo "define lib_map (  ${cdp_dir} => cd_core, \" >> hdl.var

gives the exact result as

echo "define lib_map (  ${cdp_dir} => cd_core, \\" >> hdl.var

It looks to me like the color coding algorithm doesn't do quite the same thing as the echo command does.

Thanks for the help,
Mike


On Jun 14, 2006, at 17:25, Steve Baxter wrote:

It's because the colour coding is designed for C. \" in a C string escapes the " (so it is added to the string instead of terminating it).

Try putting \ " (with a space between the \ and the ") if your script can allow that.

Cheers,

Steve.

On 15 Jun 2006, at 0:25, Michael Collier wrote:

Hi,

I get incorrect color coding for a C shell script I have when a echo string has a \ as the last character like this:


echo "define lib_map ( ${cdp_dir} => cd_core, \" >> hdl.var echo " ${oob_dir} => oob, \" >> hdl.var

The color coding goes from the first quote on the first line to first quote on the second line because it look like the \ character makes the color coding algorithm skip the second quote on the first line. The script works fine and puts the \ a character in the string generated by the echo command.
My question is, is this a known problem? Should I file a bug report? Or am I missing something obvious?


Thanks,
Mike

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40improvision.com


This email sent to email@hidden

Steve Baxter Software Development Manager Improvision +44-2476-692229

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Color coding problem in C shell (From: Michael Collier <email@hidden>)
 >Re: Color coding problem in C shell (From: Steve Baxter <email@hidden>)

  • Prev by Date: Re: Color coding problem in C shell
  • Next by Date: Re: Somewhat OT - Creating a Project Template from Working Project With Shell Script
  • Previous by thread: Re: Color coding problem in C shell
  • Next by thread: Re: Xcode-users Digest, Vol 3, Issue 424
  • Index(es):
    • Date
    • Thread