Re: -R switch killing line ends in PHP CLI

From: Date: Mon, 03 May 2004 14:24:45 +0000
Subject: Re: -R switch killing line ends in PHP CLI
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-185191@lists.php.net to get a copy of this message
* Thus wrote Aaron Wormus (aaron@wormus.com): > Why does the line end character get killed when I use this switch. Input > should just pass through the following oneliner should but all the line > ends are gone. > > cat file.txt | php -R 'echo $argn;' > > Is there an explaination? I've been digging around for documentation on > $argn and command line options, but it is pretty scarce! The only way around that it seems is using: echo $argn, "\n"; This does seem to be odd behaviour. Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#185191) next »