![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to find Dependent libraries in ELF file? | ravinder.are | Filesystems, Disks and Memory | 3 | 04-04-2008 06:23 AM |
| Dependent Object Framework 0.9 (Default branch) | iBot | Software Releases - RSS News | 0 | 02-04-2008 08:10 PM |
| Script execution dependent upon a file landing in a certain directory | keladar | Shell Programming and Scripting | 3 | 12-27-2007 06:19 PM |
| E:348 no string under cursor error comes in vi editor in cygwin | mrityunjay22 | Shell Programming and Scripting | 0 | 12-25-2007 05:52 AM |
| Job dependent on other job | pankajkrmishra | Shell Programming and Scripting | 4 | 09-10-2006 11:26 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Editor dependent error?
Hi all,
i did typed the following code in vi and executed it. #!/bin/sh //notice the blank line here. DATA=test echo "$DATA" There was no problem. I then deleted the file using the rm command. I used ultraedit typed in the same file. , FTP it in and i got the following output : command not found test I then edited the file using ultraedit, and removed the blank line, this time, i did not get the " command not found error". i re tried on ultra edit, this time the following piece of code: #!/bin/sh //notice the blank line here. //notice the 2nd blank line here. DATA=test echo "$DATA" the output i got was : command not found : command not found test It seems the number of blank lines i entered using ultraedit will cause the corresponding number of :command not found message when i executed the script. However, this does not happen when i use vi. Any insights? |
| Forum Sponsor | ||
|
|