Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-existent tabs under 'by-id' #86

Open
Suhail-MOHD opened this issue Mar 6, 2023 · 1 comment
Open

Non-existent tabs under 'by-id' #86

Suhail-MOHD opened this issue Mar 6, 2023 · 1 comment

Comments

@Suhail-MOHD
Copy link

Just started using tabfs today. Tabs with file semantics scratch an itch I didn't know I had 😄

While browsing tabs under by-id, I noticed something weird. I'm able to cd into a directory that doesn't exist:

suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/by-id> pwd
/Users/suhailmuhammed/Codestash/TabFS/fs/mnt/tabs/by-id
suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/by-id>
suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/by-id> ls -ltr
total 0
drwxr-xr-x  3 root  wheel  0 Dec 31  1969 535003938
drwxr-xr-x  3 root  wheel  0 Dec 31  1969 535003929
drwxr-xr-x  3 root  wheel  0 Dec 31  1969 535003926
drwxr-xr-x  3 root  wheel  0 Dec 31  1969 535003918
suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/by-id>
suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/by-id> cd 78986
suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/b/78986>
suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/b/78986>
suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/b/78986> ls
control  debugger evals    inputs   watches

I can also list the contents of a non-existent directory:

suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/by-id> ls 54
control  debugger evals    inputs   watches
suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/by-id>

This seems to work for numbers but not alpha-numeric names:

suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/by-id> ls Idontexist
ls: Idontexist: No such file or directory
suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/by-id [1]> ls 1Idontexist
ls: 1Idontexist: No such file or directory
suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/by-id [1]> ls 12
control  debugger evals    inputs   watches
suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/by-id>
suhailmuhammed@Suhails-MacBook-Pro ~/C/T/f/m/t/by-id> ls 123231a
ls: 123231a: No such file or directory

I haven't spent time debugging this yet because macOS restricts me from using strace and I didn't want to go through the hassle of getting around that today. I can spend some time on it later this week, if you're okay with me helping out.

Thanks for creating this again!

@Suhail-MOHD
Copy link
Author

Oh, here's the version of TabFS I'm using:

suhailmuhammed@Suhails-MacBook-Pro ~/C/TabFS (master)> git show HEAD
commit e056ff9073470192ef4c8498aaa7e722edae87c2 (HEAD -> master, origin/master, origin/HEAD)
Merge: a192187 4f08bb7
Author: Omar Rizwan <[email protected]>
Date:   Thu Mar 2 15:45:33 2023 -0500

    Merge pull request #85 from jdietrich-tc/master

    add Arc browser support for mac

Chrome and mac details:

Google Chrome | 110.0.5481.177 (Official Build) (x86_64)
-- | --
Revision | f34f7ab2d4ca4ad498ef42aeba4f4eb2c1392d63-refs/branch-heads/5481@{#1239}
OS | macOS Version 11.4 (Build 20F71)

@Suhail-MOHD Suhail-MOHD changed the title Changing CWD to non-existent tabs under 'by-id' Non-existent tabs under 'by-id' Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant