Linux: xrandr kann nicht „hardcore“
bearbeitet von RaketenwilliGrad gemerkt:
xrandr mag - und das mutet merkwürdig an - überhaupt nicht in der [shebang](https://de.wikipedia.org/wiki/Shebang) gerufen werden. Es behauptet dann, die vielen Optionen wären eine und die wäre nicht verständlich:
~~~
(Heul-Console:) /usr/bin/xrandr: unrecognized option '...'
~~~
Aus einem **Einzeiler**
~~~POSIX,bad
#!/usr/bin/xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768 -r 60 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080 -r 60 --scale 1.0 --pos 1366x0 --rotate normal
~~~
muss man also einen **Zweizeiler** machen:
~~~BASH,good
#!/usr/bin/sh
/usr/bin/xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768 -r 60 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080 -r 60 --scale 1.0 --pos 1366x0 --rotate normal
~~~
Linux: xrandr kann nicht „hardcore“
bearbeitet von RaketenwilliGrad gemerkt:
xrandr mag - und das mutet merkwürdig an - überhaupt nicht in der [shebang](https://de.wikipedia.org/wiki/Shebang) gerufen werden. Es behauptet dann, die vielen Optionen wären eine und die wäre falsch:
~~~
(Heul-Console:) /usr/bin/xrandr: unrecognized option '...'
~~~
Aus einem **Einzeiler**
~~~POSIX,bad
#!/usr/bin/xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768 -r 60 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080 -r 60 --scale 1.0 --pos 1366x0 --rotate normal
~~~
muss man also einen **Zweizeiler** machen:
~~~BASH,good
#!/usr/bin/sh
/usr/bin/xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768 -r 60 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080 -r 60 --scale 1.0 --pos 1366x0 --rotate normal
~~~
Linux: xrandr kann nicht „hardcore“
bearbeitet von RaketenwilliGrad gemerkt:
xrandr mag - und das mutet merkwürdig an - überhaupt nicht in der shebang gerufen werden. Es behauptet dann, die vielen Optionen wären eine und die wäre falsch:
~~~
(Heul-Console:) /usr/bin/xrandr: unrecognized option '...'
~~~
Aus einem **Einzeiler**
~~~POSIX,bad
#!/usr/bin/xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768 -r 60 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080 -r 60 --scale 1.0 --pos 1366x0 --rotate normal
~~~
muss man also einen **Zweizeiler** machen:
~~~BASH,good
#!/usr/bin/sh
/usr/bin/xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768 -r 60 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080 -r 60 --scale 1.0 --pos 1366x0 --rotate normal
~~~
Linux: xrandr kann nicht „hardcore“
bearbeitet von RaketenwilliGrad gemerkt:
xrandr mag - und das mutet merkwürdig an - überhaupt nicht in der shebang gerufen werden. Es behauptet dann, die vielen Optionen wären eine und die wäre falsch:
~~~
(Heul-Console:) /usr/bin/xrandr: unrecognized option '...'
~~~
Aus einem **Einzeiler**
~~~POSIX,bad
#!/usr/bin/xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768 -r 60 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080 -r 60 --scale 1.0 --pos 1366x0 --rotate normal
~~~
muss man also einen **Zweizeiler** machen:
~~~BASH,good
#!/usr/bin/sh
xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768 -r 60 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080 -r 60 --scale 1.0 --pos 1366x0 --rotate normal
~~~
Linux: xrandr kann nicht „hardcore“
bearbeitet von RaketenwilliGrad gemerkt:
xrandr mag - und das mutet merkwürdig an - überhaupt nicht in der shebang gerufen werden. Es behauptet dann, die vielen Optionen wären eine und die wäre falsch:
~~~
(Heul-Console:) /usr/bin/xrandr: unrecognized option '...'
~~~
Aus einem **Einzeiler**
~~~BASH,bad
#!/usr/bin/xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768 -r 60 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080 -r 60 --scale 1.0 --pos 1366x0 --rotate normal
~~~
muss man also einen **Zweizeiler** machen:
~~~BASH,good
#!/usr/bin/sh
xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768 -r 60 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080 -r 60 --scale 1.0 --pos 1366x0 --rotate normal
~~~
Linux: xrandr „hardcore“
bearbeitet von RaketenwilliGrad gemerkt:
xrandr mag - und das mutet merkwürdig an - überhaupt nicht in der shebang gerufen werden.
Aus einem **Einzeiler**
~~~BASH,bad
#!/usr/bin/xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768 -r 60 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080 -r 60 --scale 1.0 --pos 1366x0 --rotate normal
~~~
muss man also einen **Zweizeiler** machen:
~~~BASH,good
#!/usr/bin/sh
xrandr --output LVDS1 --primary --scale 1.0 --mode 1366x768 -r 60 --pos 0x0 --rotate normal --output HDMI1 --mode 1920x1080 -r 60 --scale 1.0 --pos 1366x0 --rotate normal
~~~