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

Regex Errors #27

Open
ttasovac opened this issue May 18, 2014 · 5 comments
Open

Regex Errors #27

ttasovac opened this issue May 18, 2014 · 5 comments

Comments

@ttasovac
Copy link

Hi! I am using apacheconf.nanorc on Centos 6.5 and I am getting a bunch of Regex errors

nano --version
 GNU nano version 2.2.6 (compiled 01:54:56, Nov 22 2010)
 (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
 2008, 2009 Free Software Foundation, Inc.
 Email: nano@nano-editor.org    Web: http://www.nano-editor.org/
 Compiled options: --enable-color --enable-extra --enable-multibuffer --enable-nanorc --enable-utf8
Error in /usr/share/nano/apacheconf.nanorc on line 4: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 5: Command ""(AcceptMutex|AcceptPathInfo|AccessFileName|Action|AddAlt|AddAltByEncoding|AddAltByType|AddCharset|AddDefaultCharset|AddDescription|AddEncoding)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 6: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 7: Command ""(AddHandler|AddIcon|AddIconByEncoding|AddIconByType|AddInputFilter|AddLanguage|AddModuleInfo|AddOutputFilter|AddOutputFilterByType|AddType|Alias|AliasMatch)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 8: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 9: Command ""(Allow|AllowCONNECT|AllowEncodedSlashes|AllowOverride|Anonymous|Anonymous_Authoritative|Anonymous_LogEmail|Anonymous_MustGiveEmail|Anonymous_NoUserID)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 10: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 11: Command ""(Anonymous_VerifyEmail|AssignUserID|AuthAuthoritative|AuthDBMAuthoritative|AuthDBMGroupFile|AuthDBMType|AuthDBMUserFile|AuthDigestAlgorithm)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 12: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 13: Command ""(AuthDigestDomain|AuthDigestFile|AuthDigestGroupFile|AuthDigestNcCheck|AuthDigestNonceFormat|AuthDigestNonceLifetime|AuthDigestQop|AuthDigestShmemSize)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 14: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 15: Command ""(AuthGroupFile|AuthLDAPAuthoritative|AuthLDAPBindDN|AuthLDAPBindPassword|AuthLDAPCharsetConfig|AuthLDAPCompareDNOnServer|AuthLDAPDereferenceAliases)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 16: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 17: Command ""(AuthLDAPEnabled|AuthLDAPFrontPageHack|AuthLDAPGroupAttribute|AuthLDAPGroupAttributeIsDN|AuthLDAPRemoteUserIsDN|AuthLDAPUrl|AuthName|AuthType|AuthUserFile)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 18: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 19: Command ""(BrowserMatch|BrowserMatchNoCase|BS2000Account|BufferedLogs|CacheDefaultExpire|CacheDirLength|CacheDirLevels|CacheDisable|CacheEnable|CacheExpiryCheck)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 20: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 21: Command ""(CacheFile|CacheForceCompletion|CacheGcClean|CacheGcDaily|CacheGcInterval|CacheGcMemUsage|CacheGcUnused|CacheIgnoreCacheControl|CacheIgnoreHeaders)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 22: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 23: Command ""(CacheIgnoreNoLastMod|CacheLastModifiedFactor|CacheMaxExpire|CacheMaxFileSize|CacheMinFileSize|CacheNegotiatedDocs|CacheRoot|CacheSize|CacheTimeMargin)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 24: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 25: Command ""(CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckSpelling|ChildPerUserID|ContentDigest|CookieDomain|CookieExpires|CookieLog|CookieName)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 26: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 27: Command ""(CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavLockDB|DavMinTimeout|DefaultIcon|DefaultLanguage|DefaultType)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 28: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 29: Command ""(DeflateBufferSize|DeflateCompressionLevel|DeflateFilterNote|DeflateMemLevel|DeflateWindowSize|Deny|Directory|DirectoryIndex|DirectoryMatch|DirectorySlash)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 30: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 31: Command ""(DocumentRoot|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|ErrorDocument|ErrorLog|Example|ExpiresActive|ExpiresByType)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 32: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 33: Command ""(ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FileETag|Files|FilesMatch|ForceLanguagePriority|ForceType|ForensicLog|Group|Header)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 34: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 35: Command ""(HeaderName|HostnameLookups|IdentityCheck|IfDefine|IfModule|IfVersion|ImapBase|ImapDefault|ImapMenu|Include|IndexIgnore|IndexOptions|IndexOrderDefault)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 36: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 37: Command ""(ISAPIAppendLogToErrors|ISAPIAppendLogToQuery|ISAPICacheFile|ISAPIFakeAsync|ISAPILogNotSupported|ISAPIReadAheadBuffer|KeepAlive|KeepAliveTimeout)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 38: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 39: Command ""(LanguagePriority|LDAPCacheEntries|LDAPCacheTTL|LDAPConnectionTimeout|LDAPOpCacheEntries|LDAPOpCacheTTL|LDAPSharedCacheFile|LDAPSharedCacheSize)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 40: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 41: Command ""(LDAPTrustedCA|LDAPTrustedCAType|Limit|LimitExcept|LimitInternalRecursion|LimitRequestBody|LimitRequestFields|LimitRequestFieldSize|LimitRequestLine)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 42: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 43: Command ""(LimitXMLRequestBody|Listen|ListenBackLog|LoadFile|LoadModule|Location|LocationMatch|LockFile|LogFormat|LogLevel|MaxClients|MaxKeepAliveRequests)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 44: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 45: Command ""(MaxMemFree|MaxRequestsPerChild|MaxRequestsPerThread|MaxSpareServers|MaxSpareThreads|MaxThreads|MaxThreadsPerChild|MCacheMaxObjectCount|MCacheMaxObjectSize)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 46: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 47: Command ""(MCacheMaxStreamingBuffer|MCacheMinObjectSize|MCacheRemovalAlgorithm|MCacheSize|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 48: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 49: Command ""(MMapFile|ModMimeUsePathInfo|MultiviewsMatch|NameVirtualHost|NoProxy|NumServers|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|PassEnv|PidFile)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 50: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 51: Command ""(ProtocolEcho|Proxy|ProxyBadHeader|ProxyBlock|ProxyDomain|ProxyErrorOverride|ProxyIOBufferSize|ProxyMatch|ProxyMaxForwards|ProxyPass|ProxyPassReverse)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 52: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 53: Command ""(ProxyPreserveHost|ProxyReceiveBufferSize|ProxyRemote|ProxyRemoteMatch|ProxyRequests|ProxyTimeout|ProxyVia|ReadmeName|Redirect|RedirectMatch)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 54: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 55: Command ""(RedirectPermanent|RedirectTemp|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 56: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 57: Command ""(Require|RewriteBase|RewriteCond|RewriteEngine|RewriteLock|RewriteLog|RewriteLogLevel|RewriteMap|RewriteOptions|RewriteRule|RLimitCPU|RLimitMEM|RLimitNPROC)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 58: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 59: Command ""(Satisfy|ScoreBoardFile|Script|ScriptAlias|ScriptAliasMatch|ScriptInterpreterSource|ScriptLog|ScriptLogBuffer|ScriptLogLength|ScriptSock|SecureListen)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 60: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 61: Command ""(SendBufferSize|ServerAdmin|ServerAlias|ServerLimit|ServerName|ServerPath|ServerRoot|ServerSignature|ServerTokens|SetEnv|SetEnvIf|SetEnvIfNoCase|SetHandler)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 62: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 63: Command ""(SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSLCACertificateFile|SSLCACertificatePath)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 64: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 65: Command ""(SSLCARevocationFile|SSLCARevocationPath|SSLCertificateChainFile|SSLCertificateFile|SSLCertificateKeyFile|SSLCipherSuite|SSLEngine|SSLMutex|SSLOptions)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 66: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 67: Command ""(SSLPassPhraseDialog|SSLProtocol|SSLProxyCACertificateFile|SSLProxyCACertificatePath|SSLProxyCARevocationFile|SSLProxyCARevocationPath|SSLProxyCipherSuite)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 68: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 69: Command ""(SSLProxyEngine|SSLProxyMachineCertificateFile|SSLProxyMachineCertificatePath|SSLProxyProtocol|SSLProxyVerify|SSLProxyVerifyDepth|SSLRandomSeed|SSLRequire)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 70: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 71: Command ""(SSLRequireSSL|SSLSessionCache|SSLSessionCacheTimeout|SSLUserName|SSLVerifyClient|SSLVerifyDepth|StartServers|StartThreads|SuexecUserGroup|ThreadLimit)"" not understood

Error in /usr/share/nano/apacheconf.nanorc on line 72: Missing regex string

Error in /usr/share/nano/apacheconf.nanorc on line 73: Command ""(ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnsetEnv|UseCanonicalName|User|UserDir|VirtualDocumentRoot)"" not understood

I really wouldn't know how to fix these — but perhaps somebody else might.

@scopatz
Copy link
Owner

scopatz commented May 18, 2014

Sorry I don't know what is wrong here.

@ThomasR
Copy link
Contributor

ThomasR commented Feb 28, 2016

Stuff like that usually happens when you use DOS newlines (CRLF). dos2unix *.nanorc should fix it.

@thepinkservbot
Copy link

I understand this is almost a year old now, but spot-on with what ThomasR said, completely fixed the issue and now I can use scopatz's syntaxes. Thank you both.

@scopatz
Copy link
Owner

scopatz commented Jan 23, 2017

Please feel free to submit a PR to fix!

@Wqrld
Copy link

Wqrld commented Dec 30, 2019

old issue but this is still a problem when using nano from git bash on windows where DOS newlines are used

davidhcefx added a commit to davidhcefx/nanorc that referenced this issue Nov 1, 2024
feat: add create-branches.sh and switch-branch.sh
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

5 participants