Skip to content

Conversation

@euberdeveloper
Copy link

I noticed that in my pc (Ubuntu 20 - bash), using SETTINGS_FILE="~/.redate-settings"; does not work when tested with [ -f $SETTINGS_FILE ], while SETTINGS_FILE="$HOME/.redate-settings" does

I noticed that in my pc (Ubuntu 20 - bash), using `SETTINGS_FILE="~/.redate-settings";` does not work when tested with `[ -f $SETTINGS_FILE ]`, while `SETTINGS_FILE="$HOME/.redate-settings"` does
@lc-at
Copy link

lc-at commented Jan 4, 2022

I had the same issue a couple days ago. I just tested your patch and it works.

The tilde is extended by bash but not when it is wrapped in quotes (according to this). So, another workaround would be to remove the quotes: SETTINGS_FILE=~/.redate-settings; (using the quotes look nicer IMO).

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.

2 participants