Nushell: Fail to start executable referenced via `~`

Created on 21 Dec 2019  ยท  3Comments  ยท  Source: nushell/nushell

Describe the bug
Can not start binaries that I locate via tilde (~)

To Reproduce
Steps to reproduce the behavior:

  1. Place a executable file somewhere under your home directory
  2. Try to start it via a path that starts with ~/
  3. See how nu says Command not found
  4. Start it via absolute path and see how it works.

Expected behavior
The executable file should be started.

Example Session

nushell on ๎‚  master [?] is ๐Ÿ“ฆ v0.7.1 via ๐Ÿฆ€ v1.40.0 
โฏ whoami
stefano

nushell on ๎‚  master [?] is ๐Ÿ“ฆ v0.7.1 via ๐Ÿฆ€ v1.40.0 
โฏ ls ~/bin | where created < 10h
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฏโ”โ”โ”โ”โ”โ”โ”ฏโ”โ”โ”โ”โ”โ”โ”โ”ฏโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฏโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฏโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
 name                    โ”‚ type โ”‚ size  โ”‚ created     โ”‚ accessed    โ”‚ modified 
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
 /home/stefano/bin/clion โ”‚ File โ”‚ 176 B โ”‚ 6 hours ago โ”‚ 6 hours ago โ”‚ 6 hours ago 
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ทโ”โ”โ”โ”โ”โ”โ”ทโ”โ”โ”โ”โ”โ”โ”โ”ทโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ทโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ทโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

nushell on ๎‚  master [?] is ๐Ÿ“ฆ v0.7.1 via ๐Ÿฆ€ v1.40.0 
โฏ ~/bin/clion
error: Command not found
- shell:1:11
1 | ~/bin/clion
  | ^^^^^^^^^^^ command not found

nushell on ๎‚  master [?] is ๐Ÿ“ฆ v0.7.1 via ๐Ÿฆ€ v1.40.0 
โฏ /home/stefano/bin/clion
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

nushell on ๎‚  master [?] is ๐Ÿ“ฆ v0.7.1 via ๐Ÿฆ€ v1.40.0 
โฏ nu --version
nushell 0.7.1

nushell on ๎‚  master [?] is ๐Ÿ“ฆ v0.7.1 via ๐Ÿฆ€ v1.40.0 
โฏ uname -a
Linux STEFANO-PC 5.4.5-arch1-1 #1 SMP PREEMPT Wed, 18 Dec 2019 19:48:51 +0000 x86_64 GNU/Linux

Configuration (please complete the following information):

  • OS: Linux (arch linux)
  • Version: 0.7.1
  • Optional features (if any): stable
bug polish

Most helpful comment

We have some things landing this week that should fix this issue. If not, I have another fix prepped and ready to go ๐Ÿ™‚

All 3 comments

I have the same problem on Windows.

We have some things landing this week that should fix this issue. If not, I have another fix prepped and ready to go ๐Ÿ™‚

This should be working in master. I'll go ahead and close, but if you try master and still see the issue, please re-open.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonathandturner picture jonathandturner  ยท  5Comments

Zooce picture Zooce  ยท  5Comments

ProgrammingLife picture ProgrammingLife  ยท  3Comments

KasMA1990 picture KasMA1990  ยท  4Comments

Matalus picture Matalus  ยท  4Comments