1 |
Ian Stakenvicius wrote: |
2 |
> > Mike Frysinger wrote: |
3 |
> >>> + # lets see if the username already exists + if [[ |
4 |
> >>> ! -n $(egetent passwd "${euser}") ]] ; then |
5 |
> >> |
6 |
> >> "! -n" -> "-z" |
7 |
> > |
8 |
> > Does the $() argument ever need to be double quoted, or do all |
9 |
> > versions of bash actually have the string argument optional even |
10 |
> > though that's not what the man page reads? |
11 |
> |
12 |
> Ever? Yes, but only if what is being returned can contain spaces |
13 |
|
14 |
Sorry, I should have mentioned that I had the case of the empty |
15 |
string in mind. |
16 |
|
17 |
|
18 |
//Peter |