Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 828157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:41:05+00:00 2026-05-15T03:41:05+00:00

I wrote simple script test echo hello #<– inside test if I press one

  • 0

I wrote simple script test

echo hello  #<-- inside test

if I press one time enter after hello, my script will run, if I don’t press – it will not, if two times I’ll receive my hello and + command was not found, can somebody please explain me this behavior thanks in advance

This is not a part of the code, this is actual code

and I run it on C-Shell, via editor of Windows
command:

source ./test
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:41:06+00:00Added an answer on May 15, 2026 at 3:41 am

    I have tried a similar case. I wrote a script like yours, saved it using Windows Notepad (with CRLF line terminators) and run in bash with the same effect as yours in csh. The problem is bash (so csh as well) does not understand Windows’ 2-byte line terminators, which are interpreted as commands, which obviously do not exist.
    The solution is: change your editor or configure your current editor to use unix line terminators.

    You can try for example Notepad++. Remember to change the line terminators to LF.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A couple of weeks ago, I wrote a simple Ruby script to test a
I wrote a simple regex-script in PHP: <?php $string = \section{Test 1} sdfgsdfg; $regex
I've a simple script to test the browser version. I wrote a simple standalone
I wrote a very simple program named test.py which looks like this: print 'hello
I wrote a simple script that is intended to do hierarchical clustering on a
I just wrote a very simple perl tk script to read a huge text
I'm trying to write a simple script that will move files in a list
I am trying to write a simple (for some) script that will get the
I wrote a simple script to solve a logic puzzle, the type of puzzle
I wrote a simple script trying to programmatically create a script from the onEdit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.