Jeff Lindsay

Results 346 comments of Jeff Lindsay

This is a somewhat common convention that I've not yet adopted. I understand the argument for consistency and avoiding surrounding text from being interpreted as part of the name. It's...

This is a great find and a great argument for hard tabs. Thank you.

Good point, I'm "not unhappy" with this either, which I do regularly for nested scripts where you want to keep indenting. Though since Bash doesn't care about indenting it only...

@nikolay I think the point got across even without the variable. :) I also didn't know about that optional variable expansion with heredocs... so you just double quote the boundary...

B, however, I usually have a reflection based description system where I say: ``` declare desc="This is what my function does" ``` Just inside the function. I even do this...

@ingkebil Using `declare -f` gets you the source of a function, which you can then process as text. Here is a module with this little bit of code that gets...

If the rest of the file is empty? When would you have a script that has nothing but this? Otherwise, it seems totally reasonable to understand this behavior. I can...

Curious about your debugging process for this ... if you had tracing on, wouldn't that lead to this line? I guess not if your outer scripts suppress the nonzero exit?...