Jim Meyering wrote: > However, I would find the above code easier to read if it were > written on fewer lines: > > case "$host_os" in > *-gnu*) $1 ;; # Guess yes on glibc systems. > *) $2 ;; # If we don't know, assume the worst. > esac
Will it also work if $1 or $2 contains an m4 comment (dnl something) or ends in a shell comment (# something)? Also, I like to put comments about statements before the statements, not afterwards. Bruno