summaryrefslogtreecommitdiff
path: root/trip.rc
diff options
context:
space:
mode:
authortjg <tjg>2002-07-25 12:19:17 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:22 +0100
commit15524157755d0d1452624d1e66659dba2bf6a7c3 (patch)
tree0d36dae9dcf7411723006d62b957dc60f2ae7187 /trip.rc
parent3616be790d722e6037bd436c654d9a2c0c48a7e7 (diff)
Bug: fix globbing of broken symlinks.
Diffstat (limited to 'trip.rc')
-rw-r--r--trip.rc8
1 files changed, 8 insertions, 0 deletions
diff --git a/trip.rc b/trip.rc
index 8eb4c09..9b4dd13 100644
--- a/trip.rc
+++ b/trip.rc
@@ -587,6 +587,14 @@ fn x {echo x.y $(x.y)}
~ ``''{whatis -f x} 'fn x {echo x.y $''x.y''}
' || fail sneaky parens bug
+# before rc-1.7.1, certain glob patterns could fail on broken symlinks
+mkdir $tmp.qux
+ln -s /frobnatz $tmp.qux/foo
+x=$tmp.qux/foo*
+~ $x $tmp.qux/foo || { rm -rf $tmp.qux; fail broken symlink globbing }
+x=$tmp.qux*/foo
+~ $x $tmp.qux/foo || { rm -rf $tmp.qux; fail broken symlink globbing }
+
# large file support
# this is, by no means, an exhaustive test. since particular file