LampCMS
LampCMS copied to clipboard
Remove ! from file names
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
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/snytkine/LampCMS/issues/114 .