Friday, July 16, 2010

syntax error near unexpected token `('

We, the linux users sometime face this problem. when we want to open a file with terminal or doing some work like svn commits or deletion we need to do deal with files. if a file contains invalid character's, then we will come up with this erros.

syntax error near unexpected token `('

if we have a file named 'name (copy).html', then doing the following command will produce the above error:

vim name (copy).html

Here we need to escape the unwanted characters with '\'. So, we need to modify our code the following.

vim name\ \(copy\).html

Now our command will work like a charm!
See the book OpenCart 1.4 Template Design Cookbook.
See the book Joomla Mobile Development Beginners Guide




List of my works:

Opencart Extensions:

  1. Product Based Quantity Wise Shipping: Find it here.
  2. OpenSSLCOMMERZ: integrate SSLCOMMERZ with opencart: Find it here.
  3. Fine Search v.1.0 - Improves Opencart search feature to find relevant: Find it here.
  4. Opensweetcaptcha - An easy way to generate attractive captcha for your system!: Find it here.
  5. Custom Field Product - add unlimited custom fields to the product form: Find it here.
  6. Formcaptcha - add captcha on the register page: Find it here.

My Books:

  1. OpenCart 1.4 Template Design Cookbook.
  2. Joomla Mobile Development Beginners Guide

No comments: