<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: HPUX 11.23 system - C program shows LEX using FILE command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144306#M502298</link>
    <description>yea...need to do that...They were in VI but not sure of what keystrokes/command they invoked.</description>
    <pubDate>Wed, 03 Dec 2008 13:13:32 GMT</pubDate>
    <dc:creator>Tom Haddad</dc:creator>
    <dc:date>2008-12-03T13:13:32Z</dc:date>
    <item>
      <title>HPUX 11.23 system - C program shows LEX using FILE command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144301#M502293</link>
      <description>On an HPUX 11.23 system, a co-work was programming C and inadvertantly the file was 'converted' to lexical (lex appears when I perform the FILE command). I understand 'lexical' in general but can the file be placed back to its original state?&lt;BR /&gt;&lt;BR /&gt;thank you</description>
      <pubDate>Tue, 02 Dec 2008 18:18:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144301#M502293</guid>
      <dc:creator>Tom Haddad</dc:creator>
      <dc:date>2008-12-02T18:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.23 system - C program shows LEX using FILE command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144302#M502294</link>
      <description>Hi Tom:&lt;BR /&gt;&lt;BR /&gt;The 'file' command makes a best guess attempt to "describe" a file based on the first 512-bytes.  If the file in question is source input for the C compiler, it only need be named with a '.c' extension to make the pre-processor/compiler "happy".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 02 Dec 2008 18:27:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144302#M502294</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-02T18:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.23 system - C program shows LEX using FILE command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144303#M502295</link>
      <description>&amp;gt;JRF: The 'file' command makes a best guess&lt;BR /&gt;&lt;BR /&gt;Right.  I suppose you could add some comments at the top so it doesn't think it is a lex(1) input. &lt;BR /&gt;Or fiddle with /etc/magic?  Hmm, I don't see anything there, so it must be built into file(1).</description>
      <pubDate>Tue, 02 Dec 2008 23:01:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144303#M502295</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-02T23:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.23 system - C program shows LEX using FILE command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144304#M502296</link>
      <description>thanks..but when you view the file its looks at if its encrypted.!!</description>
      <pubDate>Wed, 03 Dec 2008 13:05:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144304#M502296</guid>
      <dc:creator>Tom Haddad</dc:creator>
      <dc:date>2008-12-03T13:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.23 system - C program shows LEX using FILE command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144305#M502297</link>
      <description>Hi (again) Tom:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; thanks..but when you view the file its looks at if its encrypted.!!&lt;BR /&gt;&lt;BR /&gt;Well, then you need to ask your co-worker exactly what (s)he did to the file.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 03 Dec 2008 13:12:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144305#M502297</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-03T13:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.23 system - C program shows LEX using FILE command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144306#M502298</link>
      <description>yea...need to do that...They were in VI but not sure of what keystrokes/command they invoked.</description>
      <pubDate>Wed, 03 Dec 2008 13:13:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144306#M502298</guid>
      <dc:creator>Tom Haddad</dc:creator>
      <dc:date>2008-12-03T13:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.23 system - C program shows LEX using FILE command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144307#M502299</link>
      <description>&amp;gt;but when you view the file its looks at if its encrypted.&lt;BR /&gt;&lt;BR /&gt;Anything you can paste here to give us an idea?</description>
      <pubDate>Thu, 04 Dec 2008 03:25:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144307#M502299</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-04T03:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.23 system - C program shows LEX using FILE command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144308#M502300</link>
      <description>Encrypted + VI screams :X instead of :x. I can't even count how many times I screwed up that keystroke.&lt;BR /&gt;&lt;BR /&gt;You could try using vi to open it with a decrypt key of just "Enter" (since usually :X + Enter is the sequence). Barring that, I'd be looking at a restoration from source control or a temp file (anything with name~ in the directory or the co-worker's temp directory?)</description>
      <pubDate>Thu, 04 Dec 2008 03:31:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144308#M502300</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2008-12-04T03:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.23 system - C program shows LEX using FILE command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144309#M502301</link>
      <description>&amp;gt;Don: instead of :x. I can't even count how many times I screwed up that keystroke.&lt;BR /&gt;&lt;BR /&gt;Why would you ever have problems like that?  There is no such command as ":x".  :-)&lt;BR /&gt;There is either :wq, :q, or ZZ.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2008 04:40:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144309#M502301</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-12-04T04:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.23 system - C program shows LEX using FILE command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144310#M502302</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Dennis: There is no such command as ":x".&lt;BR /&gt;&lt;BR /&gt;I think Don is referring to '-x' at the command line when 'vi' is invoked.  This then asks for a "key" and encrypts the file.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 04 Dec 2008 13:20:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144310#M502302</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-04T13:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.23 system - C program shows LEX using FILE command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144311#M502303</link>
      <description>No, I'm really referring to ":x" in command mode. Equivalent to :wq or ZZ (but faster to type). As opposed to :X (save encrypted).&lt;BR /&gt;&lt;BR /&gt;Maybe I'm a younger fogey than I thought -- but I've been using that keystroke since 1990 or so at least, so I don't think it is a vim or newer vi thing. Works on every version I've ever used, after all.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Dec 2008 14:33:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144311#M502303</guid>
      <dc:creator>Don Morris_1</dc:creator>
      <dc:date>2008-12-04T14:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.23 system - C program shows LEX using FILE command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144312#M502304</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Don: No, I'm really referring to ":x" in command mode&lt;BR /&gt;&lt;BR /&gt;Ah, I see.  This *is* documented in the 'vi' manpages in an indirect way under 'zz':&lt;BR /&gt;&lt;BR /&gt;"ZZ Exit the editor, writing out the buffer if it was changed since the last write (same as the ex command x)." &lt;BR /&gt;&lt;BR /&gt;...which then examining the manpages for 'ex' shows that the 'X' (capitalized) is a synonym for crypt'.&lt;BR /&gt;&lt;BR /&gt;Now, if you 'vi' a file and enter ":x" you save your changes and quit (exactly as you said).  If, on the other hand you 'vi' and use ":X" (uppercase) you are prompted with:&lt;BR /&gt;&lt;BR /&gt;Are you sure?(y/n)[n]:&lt;BR /&gt;&lt;BR /&gt;...and if you answer in the affirmative, you get:&lt;BR /&gt;&lt;BR /&gt;Entering encrypting mode.  Key:&lt;BR /&gt;&lt;BR /&gt;...and if you simply press the return key, no encryption occurs, but of course, if you enter some string, the file will be rewritten as an encrypted one when you write/save the in-memory copy.  THen (obviously) to re-edit it you need to do something like:&lt;BR /&gt;&lt;BR /&gt;vi -x file&lt;BR /&gt;&lt;BR /&gt;...and apply the original "key".&lt;BR /&gt;&lt;BR /&gt;Thanks for sharing Don!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 04 Dec 2008 16:25:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144312#M502304</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-04T16:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.23 system - C program shows LEX using FILE command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144313#M502305</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;may be, the encryption of the file (with no doubts, this file WAS encrypted) is &lt;RETURN&gt;.&lt;BR /&gt;If not, the user might have entered the same command again, and the result would be a used salt of&lt;BR /&gt;:X&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;/RETURN&gt;</description>
      <pubDate>Thu, 04 Dec 2008 18:14:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144313#M502305</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-12-04T18:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX 11.23 system - C program shows LEX using FILE command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144314#M502306</link>
      <description>Problem not resolved but received some helpful input.</description>
      <pubDate>Thu, 11 Dec 2008 19:38:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-11-23-system-c-program-shows-lex-using-file-command/m-p/5144314#M502306</guid>
      <dc:creator>Tom Haddad</dc:creator>
      <dc:date>2008-12-11T19:38:57Z</dc:date>
    </item>
  </channel>
</rss>

