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

Not working some commands #94

Open
Kristinita opened this issue Aug 24, 2016 · 7 comments
Open

Not working some commands #94

Kristinita opened this issue Aug 24, 2016 · 7 comments

Comments

@Kristinita
Copy link

Windows 10 Education.

  1. I install Node.js,
  2. npm install cash-global -g,
  3. I restart my PC,
E:\Test>alias
"alias" is not recognized as an internal or external command, operable program or batch file

Is not recognized... appears, when I enter commands alias, clear, export, false, kill, source, true and unalias. Other commands work for me correctly.

What do I do incorrectly?

Thanks.

@nfischer
Copy link
Collaborator

@Kristinita is this the same error as #83?

@Kristinita
Copy link
Author

Kristinita commented Aug 24, 2016

@nfischer , no, ls command is work for me. I can't use teams which I transferred in the previous post without type cash.

I do, as here:

C:\Users\Кот>npm install cash-global -g
/
> cash-global@0.2.0 preinstall C:\Users\Кот\AppData\Roaming\npm\node_modules\cash-global
> node ./bin/preinstall.js

Command exists: clear
Command exists: cp
Command exists: false
Command exists: kill
Command exists: ls
Command exists: mkdir
Command exists: mv
Command exists: pwd
Command exists: touch
Command exists: true
Command exists: cat
Command exists: grep
Command exists: rm

C:\Users\Кот\AppData\Roaming\npm\$ -> C:\Users\Кот\AppData\Roaming\npm\node_modules\cash-global\node_modules\cash\bin\cash.js
C:\Users\Кот\AppData\Roaming\npm\cash -> C:\Users\Кот\AppData\Roaming\npm\node_modules\cash-global\node_modules\cash\bin\cash.js

> cash-global@0.2.0 postinstall C:\Users\Кот\AppData\Roaming\npm\node_modules\cash-global
> node ./bin/postinstall.js

cash-global@0.2.0 C:\Users\Кот\AppData\Roaming\npm\node_modules\cash-global
└── cash@0.8.0 (array-shuffle@1.0.1, filesize@3.3.0, minimist@1.2.0, user-home@2.0.0, vorpal-less@0.0.13, vorpal-autocomplete-fs@0.0.3, chalk@1.1.3, glob@6.0.4, vorpal-grep@0.1.2, fkill@3.1.0, fs-extra@0.23.1, username@1.0.1, lodash@4.15.0, vorpal@1.11.4)

C:\Users\Кот>ls -lah
ls: invalid option -- h
Try `ls --help' for more information.

C:\Users\Кот>

-lah is invalid option.

If I type cash, commands it works good:

C:\Users\Кот>source
"source" is not recognized as an internal or external command, operable program or batch file

C:\Users\Кот>cash
Кот@DESKTOP-0G54NVG:~$ source
-cash: source: filename argument required
source: usage: source filename [arguments]
Кот@DESKTOP-0G54NVG:~$

Thanks.

@nfischer
Copy link
Collaborator

@Kristinita Do you have ls installed from somewhere else? What happens if you just type ls with no options?

I believe cash is designed to not install commands that already exist from another source, so as not to override them. So if your native ls doesn't support -lah, then that would be your problem.

Also, not all cash commands are part of the cash-global package (again, by design). source is an example of such a command.

@Kristinita
Copy link
Author

Kristinita commented Aug 25, 2016

@nfischer,

Do you have ls installed from somewhere else?

No. I didn't establish commands from other sources.

What happens if you just type ls with no options?

C:\Users\Кот>ls
AppData
Application Data
Contacts
Cookies
Desktop
Documents
Downloads
Favorites
IntelGraphicsProfiles
Links
Local Settings
Music
NTUSER.DAT
NTUSER.DAT{0c86075c-6a85-11e6-9f2c-c8d61711acfb}.TxR.0.regtrans-ms
NTUSER.DAT{0c86075c-6a85-11e6-9f2c-c8d61711acfb}.TxR.1.regtrans-ms
NTUSER.DAT{0c86075c-6a85-11e6-9f2c-c8d61711acfb}.TxR.2.regtrans-ms
NTUSER.DAT{0c86075c-6a85-11e6-9f2c-c8d61711acfb}.TxR.blf
NTUSER.DAT{0c86075d-6a85-11e6-9f2c-c8d61711acfb}.TM.blf
NTUSER.DAT{0c86075d-6a85-11e6-9f2c-c8d61711acfb}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{0c86075d-6a85-11e6-9f2c-c8d61711acfb}.TMContainer00000000000000000002.regtrans-ms
NetHood
OneDrive
Pictures
PrintHood
Recent
Saved Games
Searches
SendTo
Tracing
Videos
YandexDisk
dwhelper
kvirc4.ini
ntuser.dat.LOG1
ntuser.dat.LOG2
ntuser.ini
wc
Мои документы
Шаблоны
главное меню

Also, not all cash commands are part of the cash-global package (again, by design). source is an example of such a command.

How I can make global all cash commands?

Thanks.

@nfischer
Copy link
Collaborator

Since some sort of ls is already installed (maybe it's builtin), cash-global chose to not override it.

How I can make global all cash commands?

That's a question for @dthree. I suspect that this isn't currently available, but maybe he knows something I don't.

@Kristinita
Copy link
Author

Actually in 2017.

Thanks.

@Kristinita
Copy link
Author

Actually in 2018.

It would be nice, if alias command will globally without cash printing.

alias command:

  1. More simple, than native Windows DOSKEY command,
  2. Not included as part of Cygwin, CoreUtils for Windows or another set UNIX commands for Windows.

Thanks.

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

No branches or pull requests

2 participants