Skip to content

Document how to watch a directory#15

Open
pre wants to merge 1 commit into
jakolehm:masterfrom
pre:patch-1
Open

Document how to watch a directory#15
pre wants to merge 1 commit into
jakolehm:masterfrom
pre:patch-1

Conversation

@pre

@pre pre commented Mar 6, 2020

Copy link
Copy Markdown

No description provided.

@pre

pre commented Mar 6, 2020

Copy link
Copy Markdown
Author

Actually, the use case I documented here does not work when $COMMAND has whitespaces.

In this documented example I get an error .. msg="fork/exec bundle exec lolcat.rb: no such file or directory"

The ${COMMAND} needs to be unquoted. However, this also means that the current shell will interpret any whitespaces before nightwatch has a change to even read the args?

It would be neat to be able to provide the whole command in the same way ssh accepts a command: as a single-quoted string which is not parsed by the shell before calling nightwatch.

Ie.
Instead of
nightwatch --dir ls -l /tmp

accept a single-quoted string which is not interpreted before calling nightwatch:
nightwatch --dir -- 'ls -l /tmp $1 "white space"'

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

Successfully merging this pull request may close these issues.

1 participant