forcedotcom / forcedotcom/cli

force:data:tree:export fails if username contains a whitespace

Open
#44 6 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
571
Forks
80
Avg merge
2d 15h
Merged PRs (30d)
3

Description

### Summary

_force:data:tree:export fails if the username contains a space_.

### Steps To Reproduce:

1. Have a Windows user where the username contains a whitespace (e.g. Time Lord)
1. Run this command `sfdx force:data:tree:export -q "SELECT Name, Location__Latitude__s, Location__Longitude__s FROM Account WHERE Location__Latitude__s != NULL AND Location__Longitude__s != NULL" -d ./data`

### Expected result

_This should export the data defined by the query_.

### Actual result

> 'C:\Users\Time' is not recognized as an internal or external command,
operable program or batch file.

### Additional information

![image](https://user-images.githubusercontent.com/47455710/53804400-b4334e80-3f47-11e9-8086-36ac0253b138.png)

**SFDX CLI Version**
sfdx-cli/6.55.1-be0b3dc4c4 (windows-x64) node-v8.9.4

**SFDX plugin Version**
@salesforce/plugin-generator 1.0.1 (core)
@salesforce/sfdx-trust 2.0.1 (core)
builtins 1.0.0 (core)
salesforcedx 45.4.1 (core)

**OS and version**:
Microsoft Windows [Version 10.0.17134.590]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.