This commit is contained in:
rhiannon morris 2022-05-20 12:44:13 +02:00
parent 0838af3d18
commit 48763d2fed
3 changed files with 14 additions and 13 deletions

View file

@ -8,9 +8,9 @@ if -nt { test $# -eq 0 }
define FOUND 69 define FOUND 69
foreground { foreground {
# look for each file (in cwd) # look for each pattern (in cwd)
forx -E -x$FOUND pat { $@ } forx -E -x$FOUND pat { $@ }
# if file exists, exit with $FOUND, which breaks the loop # if a file exists, exit with $FOUND, which breaks the loop
elglob -0 files $pat elglob -0 files $pat
forx -E -x$FOUND file { $files } forx -E -x$FOUND file { $files }
ifthenelse { test -n $dironly } { pwd } { readlink -f $file } ifthenelse { test -n $dironly } { pwd } { readlink -f $file }

View file

@ -17,7 +17,8 @@ t => 'ᵗ', u => 'ᵘ', v => 'ᵛ', w => 'ʷ', x => 'ˣ', y => 'ʸ',
z => 'ᶻ' z => 'ᶻ'
); );
my %num = ( my %num = (
0 => '⁰', 1 => '¹', 2 => '²', 3 => '³', ([4..9] Z ['⁴'..'⁹']).Map 0 => '⁰', 1 => '¹', 2 => '²', 3 => '³',
([4..9] Z ['⁴'..'⁹']).Map
); );
my %other = ('!' => 'ꜝ', '.' => '·'); my %other = ('!' => 'ꜝ', '.' => '·');
# }}} # }}}
@ -53,4 +54,4 @@ if @args > 0 {
say shrink $_ for $*IN.lines say shrink $_ for $*IN.lines
} }
# vim: set ft=perl6 fdm=marker : # vim: set ft=little fdm=marker :

View file

@ -16,4 +16,4 @@ if @args > 0 {
say widen $_ for $*IN.lines say widen $_ for $*IN.lines
} }
# vim: set ft=perl6 : # vim: set ft=raku :