frsh - frsh - french command language interpreter
(HTM) git clone git://bitreich.org/frsh git://hg6vgqziawt5s4dj.onion/frsh
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
frsh (388B)
---
1 #!/bin/sh
2 # french command language interpreter
3
4 SHELL="${0}"
5
6 frenchtranslate() {
7 sed 's/«/"/g;s/»/"/g;s/€/$/g'
8 }
9
10 promptprint() {
11 printf '%s' "${USER}@$(hostname):${PWD} € "
12 }
13
14 if test $# -gt 0
15 then
16 for f in "$@"
17 do
18 eval "$(frenchtranslate <"$f")"
19 done
20 else # interactive shell
21 promptprint
22 while read -r l
23 do
24 eval $(echo "$l" | frenchtranslate)
25 promptprint
26 done
27 fi