Hyper: pwd command does not work on windows client

Created on 14 Dec 2016  路  4Comments  路  Source: vercel/hyper

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: Windows 10
  • Hyper.app version: 1.0.0
  • Link of a Gist with the contents of your .hyper.js: N/A
  • Relevent information from devtools _(CMD+SHIFT+I on Mac OS, CTRL+SHIFT+I elsewhere)_: N/A
  • The issue is reproducible in vanilla Hyper.app: Is Vanilla.

Issue


In the Windows version of Hyper, the pwd command does not work. When I attempt to use it, the result is 'pwd' is not recognized as an internal or external command, operable program or batch file.. What is should do is print the working directory.

The Windows equivalent, using cd without arguments, works as per the Windows specification. However, since this is not a Windows-specific tool, what works on other OSes in Hyper should work here, so pwd should be supported.

Most helpful comment

This was using Hyper, not cmd; and I know that on Windows, instead of pwd, one uses cd without parameters. I know there are ways to get Bash usable on Windows.

I wrote this issue because Hyper seems to at least try to be platform-agnostic, and this is a case of differences between platforms.

Within Hyper, we use pwd on non-Windows platforms, and cd on Windows platforms. The latter is because of Windows having a different convention.

However, Hyper is not a Windows-specific program. If Hyper provides a feature in one manner on all of the other platforms, it should at least be available in Hyper in the same way on Windows; even if it's also available in a different way on Windows.

Basically, here's what we can use right now for printing the working directory in Hyper:

| Command | Windows | Non-Windows |
|--------- |--------- |------------- |
| pwd | error | directory |
| cd without parameters | directory | error |

What I am saying is that ideally, it would be this instead when using Hyper:

| Command | Windows | Non-Windows |
|--------- |--------- |------------- |
| pwd | directory | directory |
| cd without parameters | directory | error |

All 4 comments

This was using Hyper, not cmd; and I know that on Windows, instead of pwd, one uses cd without parameters. I know there are ways to get Bash usable on Windows.

I wrote this issue because Hyper seems to at least try to be platform-agnostic, and this is a case of differences between platforms.

Within Hyper, we use pwd on non-Windows platforms, and cd on Windows platforms. The latter is because of Windows having a different convention.

However, Hyper is not a Windows-specific program. If Hyper provides a feature in one manner on all of the other platforms, it should at least be available in Hyper in the same way on Windows; even if it's also available in a different way on Windows.

Basically, here's what we can use right now for printing the working directory in Hyper:

| Command | Windows | Non-Windows |
|--------- |--------- |------------- |
| pwd | error | directory |
| cd without parameters | directory | error |

What I am saying is that ideally, it would be this instead when using Hyper:

| Command | Windows | Non-Windows |
|--------- |--------- |------------- |
| pwd | directory | directory |
| cd without parameters | directory | error |

You measunderstood what hyper is: a Terminal emulator. That is, a gui program that let you run text based programs in a Windows.
The commands you are talking about are exactly that: text based programs that run inside hyper.
Hyper doesn't implement any of them, and it shouldn't.

TL;DR: Hyper does not implement pwd, cd, etc. across platforms.

Hmm this is really unfortunate, I'm on Windows, I've never used cmd.exe (for obvious reasons), and I've never used cd to print my current working directory. Never knew about cd as Window's version of pwd until seeing this page.
So you're telling me in order to use hyper (I just started), I need to learn cmd.exe-specific commands that aren't applicable elsewhere, not even in the terminal of Visual Studio Code or Powershell.exe?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aem picture aem  路  3Comments

juicygoose picture juicygoose  路  3Comments

rauchg picture rauchg  路  3Comments

weabot picture weabot  路  3Comments

ConstantinChirila picture ConstantinChirila  路  3Comments