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

Remove ! from file names #114

Open
MrJamesEllis opened this issue Oct 25, 2013 · 1 comment
Open

Remove ! from file names #114

MrJamesEllis opened this issue Oct 25, 2013 · 1 comment

Comments

@MrJamesEllis
Copy link

Hi

I've been using lampcms and one thing I've noticed is the ! in the file "!config.ini"
Having a ! in the filename makes it tricky to open the file on the shell in vim or some other tool, it has to be escaped.

! starts a history lookup on the shell if it's not escaped correctly.

Could the ! be removed from the file name and the file be called config.ini ?

Thanks
James

@snytkine
Copy link
Owner

Right, it also makes it harder to hack using shell script. This is a pretty
common pattern to add extra layer of security to config files. If you need
to rerference the file from shell just enclose it in quotes.
for example cat 'path/to/!config.ini'

On Fri, Oct 25, 2013 at 6:19 PM, James Ellis [email protected]:

Hi

I've been using lampcms and one thing I've noticed is the ! in the file
"!config.ini"
Having a ! in the filename makes it tricky to open the file on the shell
in vim or some other tool, it has to be escaped.

! starts a history lookup on the shell if it's not escaped correctly.

Could the ! be removed from the file name and the file be called
config.ini ?

Thanks
James


Reply to this email directly or view it on GitHubhttps://github.com//issues/114
.

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

2 participants