Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Usage «=» symbol in «alias» command #105

Open
Kristinita opened this issue Jan 9, 2017 · 1 comment
Open

[Question] Usage «=» symbol in «alias» command #105

Kristinita opened this issue Jan 9, 2017 · 1 comment

Comments

@Kristinita
Copy link

Kristinita commented Jan 9, 2017

1. Summary

I can not use = symbol in alias command.

2. Expected behavior

SashaChernykh@DESKTOP-0G54NVG:~/Desktop/Chocolatey tools$ alias ls='ls --color=auto'
SashaChernykh@DESKTOP-0G54NVG:~/Desktop/Chocolatey tools$ alias -p
alias ls='ls --color=auto'

3. Actual behavior

SashaChernykh@DESKTOP-0G54NVG:~/Desktop/Chocolatey tools$ alias ls='ls --color=auto'
SashaChernykh@DESKTOP-0G54NVG:~/Desktop/Chocolatey tools$ alias -p
alias ls='ls --color'

Is it a bug?

4. Steps to reproduce

I install cash in my computer:

Click here to see full output.
npm install cash -g -f
npm WARN using --force I sure hope you know what you are doing.
C:\Users\SashaChernykh\AppData\Roaming\npm\$ -> C:\Users\SashaChernykh\AppData\Roaming\npm\node_modules\cash\bin\cash.js
C:\Users\SashaChernykh\AppData\Roaming\npm\cash -> C:\Users\SashaChernykh\AppData\Roaming\npm\node_modules\cash\bin\cash.js
C:\Users\SashaChernykh\AppData\Roaming\npm
`-- [email protected]
  +-- [email protected]
  +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | | `-- [email protected]
  | +-- [email protected]
  | `-- [email protected]
  +-- [email protected]
  +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | | `-- [email protected]
  | `-- [email protected]
  +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | `-- [email protected]
  |   `-- [email protected]
  |     `-- [email protected]
  +-- [email protected]
  | +-- [email protected]
  | | `-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | | `-- [email protected]
  | |   +-- [email protected]
  | |   `-- [email protected]
  | `-- [email protected]
  +-- [email protected]
  +-- [email protected]
  +-- [email protected]
  | `-- [email protected]
  +-- [email protected]
  | `-- [email protected]
  |   +-- [email protected]
  |   | `-- [email protected]
  |   +-- [email protected]
  |   +-- [email protected]
  |   | +-- [email protected]
  |   | | `-- [email protected]
  |   | `-- [email protected]
  |   +-- [email protected]
  |   +-- [email protected]
  |   | +-- [email protected]
  |   | +-- [email protected]
  |   | | `-- [email protected]
  |   | +-- [email protected]
  |   | `-- [email protected]
  |   |   +-- [email protected]
  |   |   | `-- [email protected]
  |   |   `-- [email protected]
  |   +-- [email protected]
  |   +-- [email protected]
  |   | +-- [email protected]
  |   | | `-- [email protected]
  |   | `-- [email protected]
  |   |   +-- [email protected]
  |   |   | +-- [email protected]
  |   |   | | `-- [email protected]
  |   |   | |   `-- [email protected]
  |   |   | `-- [email protected]
  |   |   |   `-- [email protected]
  |   |   `-- [email protected]
  |   +-- [email protected]
  |   | +-- [email protected]
  |   | | `-- [email protected]
  |   | |   `-- [email protected]
  |   | `-- [email protected]
  |   |   `-- [email protected]
  |   `-- [email protected]
  +-- [email protected]
  | +-- [email protected]
  | | +-- [email protected]
  | | +-- [email protected]
  | | `-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | | +-- [email protected]
  | | +-- [email protected]
  | | | `-- [email protected]
  | | |   +-- [email protected]
  | | |   `-- [email protected]
  | | +-- [email protected]
  | | +-- [email protected]
  | | +-- [email protected]
  | | +-- [email protected]
  | | | +-- [email protected]
  | | | +-- [email protected]
  | | | | `-- [email protected]
  | | | `-- [email protected]
  | | +-- [email protected]
  | | +-- [email protected]
  | | `-- [email protected]
  | +-- [email protected]
  | +-- [email protected]
  | `-- [email protected]
  |   `-- [email protected]
  +-- [email protected]
  +-- [email protected]
  | `-- [email protected]
  `-- [email protected]
    `-- [email protected]

I input command alias ls='ls --color=auto' like in this article. I get actual behavior, not expected.

5. Question

May we use = symbol in cash alias command? For example, for native Windows doskey command I need to use $* symbols.

doskey gl=git log --pretty=format:"%C(yellow)%h%Cblue%d %Creset%s%Cgreen [%cn, %ar]" $*

6. Environment

Operating system and version:
Windows 32-bit 10.0.14393
Node.js:
v7.3.0
npm:
3.10.9

Thanks.

@nfischer
Copy link
Collaborator

Is it a bug?

Looks like a bug to me.

This repo has been pretty inactive for a while, so I wouldn't expect this get fixed for a bit (probably won't be fixed until vorpal depends on bash-parser).

For what it's worth, cash's ls has --color=auto by default, so this specific example isn't such a huge problem. But I can see how this could be a bigger issue for other commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants