I had this one liner in the terminal shell:

```
 while true; do echo foo | nc -l 3000 done;

```

I just want to keep listening on port 3000. But it seems like syntactically for bash to work I need a newline?

```
 while true; do 
     echo foo | nc -l 3000 
 done;

```

is there some way to do this on one line? what's happening here?