Improve shell script safety in documentation

Use heredoc instead of echo for multi-line C++ code to avoid
shell interpretation issues.

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-24 22:29:47 +00:00
parent da2726b5de
commit 8415af36e4

View File

@@ -72,11 +72,13 @@ When you're ready to implement the C++ codebase:
2. **Create a minimal main.cpp to test the build**:
```bash
echo '#include <iostream>
int main() {
std::cout << "DBAL Daemon v0.1.0" << std::endl;
return 0;
}' > dbal/cpp/src/daemon/main.cpp
cat > dbal/cpp/src/daemon/main.cpp << 'EOF'
#include <iostream>
int main() {
std::cout << "DBAL Daemon v0.1.0" << std::endl;
return 0;
}
EOF
```
3. **Add stub implementations** for files referenced in CMakeLists.txt