Making 2 files with {cat > /usr/bin/somefile << "EOF" ;}

Archaic archaic at comcast.net
Thu Aug 22 06:55:58 PDT 2002


On Thu, Aug 22, 2002 at 03:24:50PM +0200, R. Bosch wrote:
> cat > /usr/bin/lex << "EOF"
> #!/bin/sh
> # Begin /usr/bin/lex
> 
> exec /usr/bin/flex -l "$@"
> 
> # End /usr/bin/lex
> EOF &&

> As you can see, this is about bison and flex. when I source this
> funcion-container, bash complains; "syntax error: unexpected end of
> file". Yet EOF is there waiting!

Put the && on the same line as the cat command.

-- 
Archaic

-- 
The difference between death and taxes is death doesn't get worse every
time Congress meets

- Will Rogers


-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list