Skip to content

[BUG]: Saving bash code destroys the content reproducible #435

@travelr

Description

@travelr

Describe the bug

Saving bash code destroys the content reproducible

Steps to Reproduce

When I try to save markdown with the following code

git diff --name-only -z HEAD --cached \
| sort -zu \
| grep -zE '\.(ts|tsx|js|jsx|json|py|importliner)$|vite\.config\.mts$|\.env\.template$' \
| grep -zvE '^(\.|node_modules/|dist/)' \
| while IFS= read -r -d '' f; do
    echo "--- FILE_START: $f ---"
    cat "$f"
    echo "--- FILE_END: $f ---"
    echo
done > script.txt

I always get this returned

git diff --name-only -z HEAD --cached \
| sort -zu \
| grep -zE '\.(ts|tsx|js|jsx|json|py|importliner)$|vite\.config\.mts$|\.env\.template

​ \
| grep -zvE '^(\.|node_modules/|dist/)' \
| while IFS= read -r -d '' f; do
    echo "--- FILE_START: $f ---"
    cat "$f"
    echo "--- FILE_END: $f ---"
    echo
done > script.txt

How do you run Jotty?

Docker

Jotty Version

latest

Checklist

  • I have searched across other issues to make sure this bug has not been already reported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThis has been accepted and will be worked oninvestigating

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions