From 607d3569612a0dd518ab2e410bd17d2b296fe027 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 8 Oct 2015 14:56:06 +0200 Subject: scope.sh: Support unicode extensions Most (all?) `tr` implementations do not support unicode. Use `awk` instead for turning extensions to lowercase. --- ranger/data/scope.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index 19404019..1b4a7b64 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -30,7 +30,7 @@ maxln=200 # Stop after $maxln lines. Can be used like ls | head -n $maxln # Find out something about the file: mimetype=$(file --mime-type -Lb "$path") -extension=$(/bin/echo "${path##*.}" | tr "[:upper:]" "[:lower:]") +extension=$(/bin/echo "${path##*.}" | awk '{print tolower($0)}') # Functions: # runs a command and saves its output into $output. Useful if you need -- cgit 1.4.1-2-gfad0 label='branches'> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/archive/2.transect/build_and_test_until
blob: 385558bed8b90660ae9e1385d87fe46533bf002a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18