diff options
| author | ben <ben@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2009-01-10 12:07:36 +0000 | 
|---|---|---|
| committer | ben <ben@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2009-01-10 12:07:36 +0000 | 
| commit | 2ca2721969f96da61e43983531914b9b6a6d758e (patch) | |
| tree | 955c3aac1b71880f4822cc90743ac2b89998804d /linux/bin | |
| parent | 5906f73db42c5426928789970c5e677ca0e2c620 (diff) | |
| download | neo-layout-2ca2721969f96da61e43983531914b9b6a6d758e.tar.gz neo-layout-2ca2721969f96da61e43983531914b9b6a6d758e.tar.bz2 neo-layout-2ca2721969f96da61e43983531914b9b6a6d758e.zip | |
unterscheidung zwischen GNU und POSIX war sinnlos weil #!/bin/bash
git-svn-id: https://svn.neo-layout.org@1418 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'linux/bin')
| -rwxr-xr-x | linux/bin/beschreibe | 16 | 
1 files changed, 4 insertions, 12 deletions
| diff --git a/linux/bin/beschreibe b/linux/bin/beschreibe index 02462a7..3b824da 100755 --- a/linux/bin/beschreibe +++ b/linux/bin/beschreibe @@ -6,14 +6,6 @@ KEYSYM=/usr/include/X11/keysymdef.h  n=10  typeset -i j=0 -if [ "foo`echo -e bar`" = "foobar" ];then -  # GNU echo -  ECHO_e="echo -e" -else -  # POSIX echo -  ECHO_e="echo" -fi -  while [ ! "$beschreibung" ]  do  	case ${1-" "} in @@ -25,7 +17,7 @@ do  		echo Aufruf: $0 [OPTION] BESCHREIBUNG  		echo »$0« versucht ein Zeichen anhand einer Beschreibung zu identifizieren  		echo Option: -		echo "  -n               gibt maximal 2n statt 10 Vorschläge aus" +		echo -e "  -n               gibt maximal 2n statt 10 Vorschläge aus"  		exit;;  	\ )  		echo $0: Kein Suchkriterium eingegeben! @@ -65,7 +57,7 @@ then  		00)  			j=j+1  			ausgabe=1 -			a[$j]=`$ECHO_e \\\x${c2}` +			a[$j]=`echo -e \\\x${c2}`  			echo $j\) ${a[$j]}  			;;  		03)	 @@ -73,13 +65,13 @@ then  			then  				j=j+1  				ausgabe=1 -				a[$j]=`$ECHO_e \\\xcf\\\x8${c3}` +				a[$j]=`echo -e \\\xcf\\\x8${c3}`  				echo $j\) ${a[$j]}  			else  				j=j+1  				ausgabe=1 -				a[$j]=`$ECHO_e \\\xce\\\x${c2}${c3}` +				a[$j]=`echo -e \\\xce\\\x${c2}${c3}`  				echo $j\) ${a[$j]}  			fi  			;; | 
