diff options
| author | tjg <tjg> | 2002-07-25 12:19:17 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:22 +0100 |
| commit | 15524157755d0d1452624d1e66659dba2bf6a7c3 (patch) | |
| tree | 0d36dae9dcf7411723006d62b957dc60f2ae7187 /trip.rc | |
| parent | 3616be790d722e6037bd436c654d9a2c0c48a7e7 (diff) | |
Bug: fix globbing of broken symlinks.
Diffstat (limited to 'trip.rc')
| -rw-r--r-- | trip.rc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |