191 reputation
4
bio website coglib.com/~icordasc/blog
location Madison, WI
age 23
visits member for 1 year, 7 months
seen Apr 22 '13 at 15:08

Creator of github3.py. Maintainer of flake8. Collaborator on requests. Tons of other stuff that I don't have the time to list


Jul
4
awarded  Autobiographer
Jan
28
comment Issue when setting a default path in BASH
Also you might want to check if the path they're providing actually exists in advance, e.g., if ! [ -d "${path}" ] ; echo "ERROR: Path does not exist" ; fi
Jan
27
comment Issue when setting a default path in BASH
@djthoms you might want to make sure that what you read in after that echo is of zero-length. If it isn't, you might want to continue to prompt them for input. Check my edited answer. Cheers!
Jan
27
revised Issue when setting a default path in BASH
Add answer
Jan
27
comment Issue when setting a default path in BASH
Oh I entirely missed that. You're doing an echo without a subsequent read. You're not checking their input and as such the while loop is just running constantly. You need to read and break after that echo.
Jan
27
answered Issue when setting a default path in BASH
Jan
20
comment How do I keep 'indent' from moving curly braces to the next line?
I can't seem to reproduce your behavior. -brf works for me. Sorry.
Jan
17
awarded  Editor
Jan
17
revised How do I keep 'indent' from moving curly braces to the next line?
Add quote from man indent
Jan
17
comment How do I keep 'indent' from moving curly braces to the next line?
On all the different variants of linux (and versions of those) I have access to the section you reference has been edited into my original answer.
Jan
16
comment How do I keep 'indent' from moving curly braces to the next line?
@steffen the documentation says you're wrong -brf, --braces-on-func-def-line // Put braces on function definition line.
Jan
15
awarded  Teacher
Jan
15
awarded  Supporter
Jan
15
answered How do I keep 'indent' from moving curly braces to the next line?