This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Newbie question: How to use ftpd and telnetd?


Neil Zanella wrote:
> 
> On Fri, 13 Oct 2000, Corinna Vinschen wrote:
> 
> > # The external services are typically called via `tcpd' for
> >                                                  ^
> > # The external services are typically called via 'tcpd' for
> 
> This may sound like a silly question but how does that change things?
> I thought anything between a pound sign and a newline character would
> be ignored by the bash shell when running a script.

This is inside of a here script. The standard behaviour of sh is
to do command and variable substitution inside of here scripts.
This is very helpful to create context dependent output for example.
Try:

$ cat << EOF
? #!$SHELL
? EOF
#!/bin/bash
$  

You can switch that behaviour off by double quoting the end of script
delimiter:

$ cat << "EOF"
? #!$SHELL
? EOF
#!$SHELL
$ 

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                        mailto:cygwin@sources.redhat.com
Red Hat, Inc.
mailto:vinschen@cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]