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

Memory map error for file input, not STDIN #68

Closed
JeanMertz opened this issue Mar 29, 2020 · 0 comments
Closed

Memory map error for file input, not STDIN #68

JeanMertz opened this issue Mar 29, 2020 · 0 comments

Comments

@JeanMertz
Copy link

printf "# foo: bar\n" > test1
printf "# foo: bar" > test2

sd '# foo: \w+\n?' '' test1 test2
memory map must have a non-zero length
memory map must have a non-zero length

cat test1 | sd '# foo: \w+\n?' ''
cat test2 | sd '# foo: \w+\n?' ''

As seen in the above example, piping the contents of test1 and test2 to the sd command works as expected, whereas passing the files themselves results in an error.

SimplyDanny added a commit to SimplyDanny/sd that referenced this issue Apr 7, 2020
@chmln chmln closed this as completed in c8022e2 Apr 10, 2020
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