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

[[ -k /tmp ]] / test -k /tmp not supported (ble.sh) #649

Closed
akinomyoga opened this issue Mar 9, 2020 · 1 comment
Closed

[[ -k /tmp ]] / test -k /tmp not supported (ble.sh) #649

akinomyoga opened this issue Mar 9, 2020 · 1 comment

Comments

@akinomyoga
Copy link
Collaborator

akinomyoga commented Mar 9, 2020

ble.sh uses this. It tests the sticky bit (See the manual of Bash). I think this is relatively easy to support.

$ bin/osh -c '[[ -k /tmp ]]'
  [[ -k /tmp ]]
        ^~~~
[ -c flag ]:1: Expected ]]
$ bin/osh -c 'test -k /tmp'
  test -k /tmp
       ^~
[ -c flag ]:1: (test) Expected unary operator, got '-k' (2 args)
$
@andychu
Copy link
Contributor

andychu commented Mar 9, 2020

Actually this is a dupe of #537

@andychu andychu closed this as completed Mar 9, 2020
abathur pushed a commit to abathur/oil that referenced this issue Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants