4
echo tilde with name: ~root/
8
echo BASHISM: tilde plus: ~+
9
echo BASHISM: tilde minus: ~-
11
pushd ~ >/dev/null 2>&1 # BASHISM
12
for i in $(seq 1 9); do
13
pushd / >/dev/null 2>&1 # BASHISM
16
echo BASHISM: tilde plus n: ~+1
17
echo BASHISM: tilde implicit plus n: ~1
18
echo BASHISM: tilde minus n: ~-1
20
echo BASHISM: tilde plus 10: ~+10
21
echo BASHISM: tilde implicit plus 10: ~10
22
echo BASHISM: tilde minus 10: ~-10
25
echo BASHISM=/:~+/bin/
26
BASHISM=~-/bin ; echo $BASHISM
27
BASHISM=/:~+/bin/ ; echo $BASHISM
29
echo nothing wrong here: ~+foo/
30
echo nothing wrong here: ~-moo/
31
echo nothing wrong here: ~+1foo/
32
echo nothing wrong here: ~1foo/
33
echo nothing wrong here: ~-1moo/
35
# Again, but without the slash
36
echo nothing wrong here: ~+foo
37
echo nothing wrong here: ~-moo
38
echo nothing wrong here: ~+1foo
39
echo nothing wrong here: ~1foo
40
echo nothing wrong here: ~-1moo