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

Fix not compatible "--" specification problem (BSD versions chmod) | … #201

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

uru2
Copy link

@uru2 uru2 commented Apr 20, 2024

fix #195

43c75ff add a -- flag, to treat all input as file or folder or drive id input bug.

BSD versions chmod (strict arguments parser)
$ chmod {mode} -- {file} <-- NG (change permission "--" file)
$ chmod -- {mode} {file} <-- OK ({option} arguments not used)

See chmod synopsis and utility syntax guideline 10.
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/chmod.html#tag_20_17_02
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_02

@uru2
Copy link
Author

uru2 commented Apr 21, 2024

Add oneliner case statement fix for POSIX version.

e.g.

val=1234567890
val="${val#1}" val="${val%0}"
echo "val=${val}"

bash, dash implementation
val=23456789 (All expressions)

FreeBSD /bin/sh implementation
val=123456789 (Last expression only)

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

Successfully merging this pull request may close these issues.

gupload doesn't accept Client ID
1 participant