214 reputation
27
bio website
location India
age 22
visits member for 1 year, 6 months
seen Apr 7 at 9:34

About me


Oct
12
accepted How can I detect that no options were passed with getopts?
Oct
12
comment Only one file name allowed error
can I :wq! and forcefully save it even if I don't have the write permissions? In my case if I am not the super user?
Oct
12
awarded  Supporter
Oct
12
accepted Only one file name allowed error
Oct
11
comment Only one file name allowed error
Sure thing. thanks. Can't +1 for you.
Oct
11
comment Only one file name allowed error
Sorry about that. I'll keep this in mind. Also I should put only the first occurrence of code-word in code, right? Don't mind me asking it here instead of meta.
Oct
11
comment Only one file name allowed error
I wanted to leave a comment and ask those guys on stackoverflow.com/questions/1005/… but don't have enough reputation to leave a comment.
Oct
11
asked Only one file name allowed error
Oct
11
comment How can I detect that no options were passed with getopts?
what if I was running other shell? zsh, sh. does any shell other than bash take care of this condition?
Oct
11
awarded  Scholar
Oct
11
comment How can I detect that no options were passed with getopts?
thanks. the above code really helped. Its too bad getopts doesn't have such provision. What's worse than that is can't upvote you.
Oct
11
awarded  Student
Oct
11
comment How can I detect that no options were passed with getopts?
no. its bash. So how do i achieve what I want - handle the no argument condition using bash.
Oct
11
comment How can I detect that no options were passed with getopts?
I am running it under /bin/bash
Oct
11
asked How can I detect that no options were passed with getopts?