7
Awlex
3y

I wasted fucking hours just trying to find out why curl doesn't send the data I've interpolated from a variable.

It doesn't even send the fucking hardcoded part of the data. I've compared it with a curl command generated by firefox, which works fine. Literally the only difference is that I interpolate a variable and I've echoed the contents of that variable and that was fine as well. I've even checked the interpolated string and it was fine.

And then I moved more stuff into the hardcoded part and it just started to work.

Wtf is this bullshit. I really feel like learning intermediate bash scripting is just a waste of time, just how complicated can you make debugging something so simple.

Every fucking time I give bash scripting a chance this shit costs me so much time, patience and motivation, I really wanna prefer that shit to python, because managing python dependencies for a script sucks ass^2,, but at least I can get shit done in Python. Just fucking end me or give me a language that doesn't make me wanna shoot myself

Comments
  • 0
    I think you can read data from an input stream if it’s the body you’re trying to get data into and that works

    Yeah Linux commands are frustrating sometimes
  • 0
    @killames I'm not reading any data, just interpolating/concating
  • 0
    Curl != Bash. But I know what you mean, just run your script with +x
  • 0
    I'm curious. What did your failing script look like and what error were you getting?
  • 0
    Software is messed for the most part. Many things ain't intuitive. Many things are not simple. Too many features, including complex features, too many fucking complex things, but we can't get our simple work done with powerful tools because they are also dumb usually. Debugging is a nightmare usually. We need debugging handbooks for every fucking thing. And debugging tools and diagnostic tools and monitoring and observability tools for everything. Fucking automate all the debugging and tell me what's the next step I need to do. And I hate non actionable errors the most. Silent errors too.
Add Comment