Earnestly / sx

Start an xorg server
MIT License
231 stars 16 forks source link

Made everything more readable #29

Closed ghost closed 1 year ago

ghost commented 1 year ago
  1. Don't use #!/bin/sh -- it's useless UNIX absolute file names will always start with /
  2. Don't quote oldstty state Its defined in stty.1p line 47, that $(stty -g) will never produce string that will make shell expand arguments
  3. Don't use if ith only 1 command, it's unreadable Having if with only 1 command in its body is useless and unreadable I Changed it to stty $oldstty || stty sane
  4. Delete useless quotes $!, $? and $$ will always be an int type
  5. Dont use && with trap trap will only return non-zero if signal name is invalid