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

Can't parse path containing spaces #4

Open
zhanyuanucb opened this issue Jul 11, 2022 · 0 comments
Open

Can't parse path containing spaces #4

zhanyuanucb opened this issue Jul 11, 2022 · 0 comments

Comments

@zhanyuanucb
Copy link
Contributor

zhanyuanucb commented Jul 11, 2022

Describe the bug
Got No such command: _ while running bash example/run_docker.sh

To Reproduce
Steps to reproduce the behavior:

  1. Create a directory containing space (e.g. My Directory)
  2. Clone the pirlib repo to this directory and cd to this repo
  3. run bash example/run_docker.sh
  4. See the error

Environment (please complete the following information):

  • OS: MacOS
  • Terminal: iTerm

Additional context
This line convert relative path to absolute path

EXAMPLEDIR=$([[ $EXAMPLEDIR = /* ]] && echo "$EXAMPLEDIR" || echo "$PWD/${EXAMPLEDIR#./}")

If cd to the example directory and comment out this line, then the run_docker.sh can be successfully executed.
Or using VSCode terminal to run bash example/run_docker.sh as the converted path won't contain spaces.

zhanyuanucb pushed a commit that referenced this issue Dec 7, 2022
add: `wiki_parser` example from Forte
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

1 participant