linux - syntax error near unexpected token ' - bash - Stack Overflow

linux - syntax error near unexpected token ' - bash - Stack Overflow

瀏覽:1159
日期:2025-06-12
I suspect the OP's issue was encoding though. I just copied the example into notepad and saved, then copied to linux and sh ./file produces unexpected token errors, including `' type references. To fix I needed to strip the carriage returns. i.e. $ cat or...看更多