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

Here-documents #11

Closed
emersion opened this issue Aug 1, 2018 · 1 comment
Closed

Here-documents #11

emersion opened this issue Aug 1, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@emersion
Copy link
Owner

emersion commented Aug 1, 2018

Should parse things like:

{ echo a; cat <<EOF1; cat <<-"EOF2"; ls; } & \
echo hey
This is 1.
Double-quotes are ignored: "$HOME
Substitutions are performed: $(ls)
EOF1
	This is 2.
		Substitutions are not performed: $(ls)
	EOF2

We probably want to add a list of here-documents in the parser state, and read those after a complete command has been parsed.

@emersion emersion added the enhancement New feature or request label Aug 1, 2018
@emersion
Copy link
Owner Author

emersion commented Aug 10, 2018

  • Parser
    • Parse IO redirection operator
    • Parse here-documents body
  • Shell
    • Basic <<
    • <<-
    • Expansions if not quoted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant