Search Results

Search: Posts Made By: mvdan
11,659
Posted By mvdan
> How will your parser cope with this line and...
> How will your parser cope with this line and others in that script you have to test with?

The parser of course does not have problem with long lines.

The formatter does not do anything about...
11,659
Posted By mvdan
None of this matters. The original format is of...
None of this matters. The original format is of little significance, since the program is written to change it.



Deprecated means "don't use, but still supported". I doubt they will ever remove...
11,659
Posted By mvdan
wisecracker, that fails right now because I...
wisecracker, that fails right now because I wasn't aware of $[. Apparently, it's a very old and deprecated form of $((:
...
11,659
Posted By mvdan
Note that nearly all of the items you're...
Note that nearly all of the items you're commenting on do not concern formatting at all - like limiting to bash, what scripts should be used for or [[ over [.

Some comments:

* shfmt (the...
11,659
Posted By mvdan
Format your scripts with shfmt
I've been working on a tool to format (style) shell programs, much like gofmt for Go. After much testing and personal use, I'm throwing it out there to see if it's useful to anyone else.

GitHub -...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 12:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy