The test case I provided was a simplified version of what I intend to
use it for.
Andrew is correct in that '$@' is not evaluated in the context of an
alias and I would need to wrap up my intended alias in a function.
Thanks. I was having a brain fart there.
On 6/22/2013 11:58 AM, Andrew De
On Sat, Jun 22, 2013 at 11:39 AM, Matt D. wrote:
> Maybe I've just had a long week but I can't seem to get this to work:
>
> alias pathw='echo `cygpath -w "$@"`'
I think all you want is
alias pathw='cygpath -w'
> pathw "/cygdrive/g/"
>
The result of this will then be
G:\
--
Earnie
-- https:/
On 06/22/2013 08:39 AM, Matt D. wrote:
Maybe I've just had a long week but I can't seem to get this to work:
alias pathw='echo `cygpath -w "$@"`'
pathw "/cygdrive/g/"
I also tried:
alias pathw='echo $(cygpath -w "$@")'
cygpath just yells at me that I'm doing something wrong.
Try a real funct
Maybe I've just had a long week but I can't seem to get this to work:
alias pathw='echo `cygpath -w "$@"`'
pathw "/cygdrive/g/"
I also tried:
alias pathw='echo $(cygpath -w "$@")'
cygpath just yells at me that I'm doing something wrong.
--
Problem reports: http://cygwin.com/problems.ht
4 matches
Mail list logo