File: bashism.patch

package info (click to toggle)
sprng 2.0a-12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,256 kB
  • sloc: ansic: 30,350; fortran: 1,618; makefile: 575; cpp: 58; sh: 5
file content (16 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: echo -e works only with bash; use printf instead

--- a/SRC/insertmenu
+++ b/SRC/insertmenu
@@ -7,9 +7,5 @@
 
 if [ $s = "0" ]
 then
-  echo -e "        $1   $2     --- $3 $4" >> $6
-# on some systems use echo without '-e'
-# uncomment the next line
-# echo "        $1   $2     --- $3 $4" >> $6
-
+  printf "        $1   $2     --- $3 $4" >> $6
 fi