The Pi is like any other, with Raspbian downloaded last month.
The problem came when using copy-paste with using LeafPad (or Nano) to make a simple bash script to try out the vcgencmd commands to explore the Pi.
I was following the examples from..
HERE --> http://www.elinux.org/RPI_vcgencmd_usage
It went badly wrong. First I tried making a simple bash script ..
Code: Select all
#!/bin/bash echo Bash script to try out vcgencmd commands # for src in arm core h264 isp v3d uart pwm emmc pixel vec hdmi dpi ; do \ echo -e "$src:\t$(vcgencmd measure_clock $src)" ; \ done
Code: Select all
pi@PiBox ~ $ ./bash-script1.sh Bash script to try out vcgencmd commands ./bash-script1.sh: line 4: $'for\302\240src\302\240in\302\240arm\302\240core\302\240h264\302\240isp\302\240v3d\302\240uart\302\240pwm\302\240emmc\302\240pixel\302\240vec\302\240hdmi\302\240dpi\302\240': command not found ./bash-script1.sh: line 5: $'vcgencmd\302\240measure_clock\302\240': command not found ./bash-script1.sh: line 5: $'\302\240do\302\240echo\302\240-e\302\240:\\t\302\240': command not found ./bash-script1.sh: line 6: $'\302\240done': command not found
A copy-paste from NetSurf straight into a terminal will not work, but you can first copy it into LeafPad.
The a middle-click will deliver the line - BUT it only looks OK.
As you press <Return>, you discover there were non-display characters in there.
The only way to get it to work was to deliberately type in the list direct into the editor.
It seems the SPACE characters and LINE FEEDS are the problem.
If this is something simple - like I have a strange locale setup or something like that, then do tell.
Any help would be much appreciated.