Re: DOS newlines (CR/LF) to Unix format [message #171889 is a reply to message #171743] |
Thu, 20 January 2011 10:26 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
Bjarne Jensen wrote:
> On 2011-01-19 12:33, Thomas 'PointedEars' Lahn wrote:
>> Assuming that you are allowed to exec(): You should have copy-pasted; the
>> shell command is not the same. In essence, it is an awk(1) invocation
>> error: Unquoted `{' and `}' are for Brace Expansion in a POSIX-compatible
>> shell.
>
> I can do like exec("whoami") fine so I assume that I should be permitted
> to awk, dos2unix etc. ?
Maybe. It depends on the permissions that the user running php(.exe) has
for those files.
The main issue is that you need to quote the argument to awk(1) as it was
described (single-quotes to avoid shell expansion).
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
|
|
|