Menu

#261 doesn't handle symlinks properly

0.60
closed
other (34)
5
2016-12-11
2012-06-14
JohnV
No

Running aspell on a synlink makes a new file with the name of the symlink and renames the symlink with the .bak extention. It seems to me that it should modify the target of the link rather.

The following shows the unexpected (at least to me) behavior:
john@yoshi tmp $ mkdir aspell-test
john@yoshi tmp $ cd aspell-test/
john@yoshi aspell-test $ echo "An improprly spelld document." > ./test.txt
john@yoshi aspell-test $ ln -s ./test.txt ./link
john@yoshi aspell-test $ ls -la
total 20
drwxrwxr-x 2 john john 4096 2012-06-14 00:01 .
drwxr-xr-x 17 john john 12288 2012-06-14 00:01 ..
lrwxrwxrwx 1 john john 10 2012-06-14 00:01 link -> ./test.txt
-rw-rw-r-- 1 john john 30 2012-06-14 00:01 test.txt
john@yoshi aspell-test $ aspell check ./link

[correct the spellings with aspell here]

john@yoshi aspell-test $ ls -la
total 24
drwxrwxr-x 2 john john 4096 2012-06-14 00:02 .
drwxr-xr-x 17 john john 12288 2012-06-14 00:01 ..
-rw-rw-r-- 1 john john 32 2012-06-14 00:02 link
lrwxrwxrwx 1 john john 10 2012-06-14 00:01 link.bak -> ./test.txt
-rw-rw-r-- 1 john john 30 2012-06-14 00:01 test.txt

This is with aspell 0.60.6.

Discussion

  • JohnV

    JohnV - 2012-06-14
    • summary: doesn't hand;e symlinks properly --> doesn't handle symlinks properly
     
  • Kevin Atkinson

    Kevin Atkinson - 2016-12-11

    This issue has moved to GitHub: https://github.com/GNUAspell/aspell/issues/501

     
  • Kevin Atkinson

    Kevin Atkinson - 2016-12-11
    • Status: open --> closed