On Fri, October 14, 2005 8:28 am, Miles Thompson wrote:
> One of the "nice" things MSFT did was to allow spaces in directory and
> file
> names. It created more work for programmers.
I'm not familiar with MSFT...
It must be a new acronym for Apple MacOS :-), circa 1984, which
(AFAIK) was the firs
escapeshellarg() works quite well, why you say its still failed? did u try?
do a
will produce
'Dir That (Won'\''t Move)'
and this does fit into shell, even `(' and `)' is not escaped,
for in bash, all thing quoted in single quote will be treated as one
whole string and any meta character wont
MSFT allowed spaces? They were behind in allowing spaces (and long
file names) Apple allowed them far before MS, and Unix allowed spaces
far before Apple. Unix just assumes a space is a command/parameter
delimiter first and part of the name second. Just like multiplication
takes precedence
One of the "nice" things MSFT did was to allow spaces in directory and file
names. It created more work for programmers.
One of the LOUSIEST things MSFT did was allowing spaces in directory and
file names, because of the needless, tedious parsing and checking it requires.
So much simpler to
In your example, the problem is that the name has spaces, which the
shell uses as a delimiter. So "That Won't Move/" is kind of being
considered parameters instead of part of the dir. Using the command
line (i.e. shell/terminal) will give you more feedback as to what is
happening (/some/dir
On 10/13/05, -k. <[EMAIL PROTECTED]> wrote:
> --- Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote:
> > $source_dir = escapeshellarg( '/some/dir/Dir That Won't Move/' );
>
>
> Unfortunately escapeshellarg doesn't work for all cases, it will escape the "
> ' " in that example
> but it doesn't escape
--- Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote:
> $source_dir = escapeshellarg( '/some/dir/Dir That Won't Move/' );
Unfortunately escapeshellarg doesn't work for all cases, it will escape the " '
" in that example
but it doesn't escape other characters such as " ) ". So...
$source_dir = esc
-k. wrote:
I'm having trouble moving some directories. My script works fine on
some directories but doesn't move others. It seems to have trouble
with directories with non alphanumeric charters. I'm running Red Hat
FC2. I'm trying to move the directory basically like this...
$source_dir = e
8 matches
Mail list logo