This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: How to use control-D character?
- From: Ian Lance Taylor <ian at airs dot com>
- To: ali hagigat <hagigatali at gmail dot com>
- Cc: binutils at sourceware dot org, bug-binutils at gnu dot org
- Date: Tue, 12 Oct 2010 06:17:07 -0700
- Subject: Re: How to use control-D character?
- References: <AANLkTimYAeG_XMy4q_O1tmgZ=wr0xUofhRHkU8ArF5JD@mail.gmail.com>
ali hagigat <hagigatali@gmail.com> writes:
> My question is about as, GNU assembler, Version 2.14 and I have copied
> the related extract from the manual:
> -----------------------------------------
> 1.5 Input Files
> If you give 'as' no ïle names it attempts to read one input ïle from
> the as standard input,
> which is normally your terminal. You may have to type ctl-D to tell as
> there is no more
> program to assemble.
> ----------------------------------------
>
> How can i use <ctl-D> key combination? Will it be typed at the end of
> 'as' command line?
> When i type:
> as <ctl-D>
> 'as' will wait for user to enter some lines of instruction!!
>
> If I use 'as' alone and then enter some assembly lines , how can i
> terminate the input terminal text and make 'as' assemble the lines I
> have written?
http://en.wikipedia.org/wiki/End-of-file
In other words, type
as
your input file
^D
This assumes that you are using Unix or GNU/Linux; you didn't say.
Ian