- May
- 239
- 2
Using build 151.
Should alias expansion cause an extra space to be inserted before switch (/) characters used in the alias parameters given when invoking the alias?
It seems to do that with this alias:
alias cpfrom=*copy /G ftp:%1 %2
c:\> cpfrom putget/idoc.zip
After expansion with Ctrl-F:
c:\> copy /G ftp:putget /idoc.zip
Note the extra space after "putget".
Needless to say, this causes the command to fail.
A simple work-around is to use `cpfrom "putget/idoc.zip"` instead.
Defining the alias as
alias cpfrom=*copy /G "ftp:%1" %2
does not help.
Is this behaviour deliberate or might it be a bug in the alias expansion handling?
Might there be a way to define the alias so that `cpfrom putget/idoc.zip` works "as expected"?
--
Niklas Bäckman
Should alias expansion cause an extra space to be inserted before switch (/) characters used in the alias parameters given when invoking the alias?
It seems to do that with this alias:
alias cpfrom=*copy /G ftp:%1 %2
c:\> cpfrom putget/idoc.zip
After expansion with Ctrl-F:
c:\> copy /G ftp:putget /idoc.zip
Note the extra space after "putget".
Needless to say, this causes the command to fail.
A simple work-around is to use `cpfrom "putget/idoc.zip"` instead.
Defining the alias as
alias cpfrom=*copy /G "ftp:%1" %2
does not help.
Is this behaviour deliberate or might it be a bug in the alias expansion handling?
Might there be a way to define the alias so that `cpfrom putget/idoc.zip` works "as expected"?
--
Niklas Bäckman