Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #160693

Re: how execute a script

From shawn wilson <ag4ve.us@gmail.com>
Newsgroups linux.debian.user
Subject Re: how execute a script
Date 2015-11-17 21:00 +0100
Message-ID <qvUA1-Xn-9@gated-at.bofh.it> (permalink)
References (5 earlier) <qvSRA-8wu-13@gated-at.bofh.it> <qvSRA-8wu-19@gated-at.bofh.it> <qvTDY-m1-5@gated-at.bofh.it> <qvTND-EM-11@gated-at.bofh.it> <qvUA1-Xn-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Nov 17, 2015 at 2:53 PM, Brian <ad44@cityscape.co.uk> wrote:
> On Tue 17 Nov 2015 at 14:05:25 -0500, shawn wilson wrote:
>
>> On Tue, Nov 17, 2015 at 1:56 PM, Brian <ad44@cityscape.co.uk> wrote:
>> > On Tue 17 Nov 2015 at 13:08:49 -0500, shawn wilson wrote:
>> >
>> >> On Tue, Nov 17, 2015 at 1:02 PM, Chris Bannister
>> >> <cbannister@slingshot.co.nz> wrote:
>> >> > On Tue, Nov 17, 2015 at 09:31:53AM -0500, shawn wilson wrote:
>> >> >> On Nov 16, 2015 5:37 PM, "Lisi Reisz" <lisi.reisz@gmail.com> wrote:
>> >> >> > department has been trying for an hour".  Puzzled, because I thought I had
>> >> >> > sent a .pdf, and had checked that it opened fine in Evince, I looked at
>> >> >> the
>> >> >> > file - groaned - and renamed scan-foo to scan-foo.pdf.  When resent it
>> >> >>
>> >> >> communicated (via its extension). If you create a pdf, it is bad to not
>> >> >> have the pdf extension - you've lost data.
>> >> >
>> >> > How have you lost data?
>> >>
>> >> You loose what the file type (data) should be if you save a file w/o
>> >> an extension. Again, this is fine for an installed program (no one
>> >> cares as long as it works) but not so good for data that is processed
>> >> by another program or a script I want to edit.
>> >
>> > You would have to give a specific example where a file processed by a
>> > program or script fails to open for this argument to be convincing, You
>> > also have to distinguish between data in the file and information the
>> > extension conveys to the program.
>>
>> How about just that vim filetype relies on the filename to determine the format?
>
> "vim filetype". I don't know what you mean. 'vim /usr/bin/vim' opens the
> file.  I do not understand a word of the display but it does open it. An
> extension doesn't seem to have a part to play in the file's opening.
>

Your way of setting filetype is by looking at the extension - for example:
:autocmd BufRead *.js set filetype=javascript

Same goes for *.pl or *.pm or *.py or *.c, etc

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: how execute a script Martin Str|mberg <ams@ludd.luth.se> - 2015-11-16 07:00 +0100
  Re: how execute a script Chris Bannister <cbannister@slingshot.co.nz> - 2015-11-16 07:30 +0100
  Re: how execute a script David Wright <deblis@lionunicorn.co.uk> - 2015-11-16 20:40 +0100
    Re: how execute a script Lisi Reisz <lisi.reisz@gmail.com> - 2015-11-16 23:40 +0100
      Re: how execute a script <tomas@tuxteam.de> - 2015-11-17 09:30 +0100
      Re: how execute a script shawn wilson <ag4ve.us@gmail.com> - 2015-11-17 15:40 +0100
        Re: how execute a script Chris Bannister <cbannister@slingshot.co.nz> - 2015-11-17 19:10 +0100
          Re: how execute a script shawn wilson <ag4ve.us@gmail.com> - 2015-11-17 19:10 +0100
            Re: how execute a script Elimar Riesebieter <riesebie@lxtec.de> - 2015-11-17 19:30 +0100
              Re: how execute a script shawn wilson <ag4ve.us@gmail.com> - 2015-11-17 20:10 +0100
            Re: how execute a script Brian <ad44@cityscape.co.uk> - 2015-11-17 20:00 +0100
              Re: how execute a script shawn wilson <ag4ve.us@gmail.com> - 2015-11-17 20:10 +0100
                Re: how execute a script Brian <ad44@cityscape.co.uk> - 2015-11-17 21:00 +0100
                Re: how execute a script shawn wilson <ag4ve.us@gmail.com> - 2015-11-17 21:00 +0100
                Re: how execute a script shawn wilson <ag4ve.us@gmail.com> - 2015-11-17 21:10 +0100
                Re: how execute a script shawn wilson <ag4ve.us@gmail.com> - 2015-11-17 21:20 +0100
                Re: how execute a script <tomas@tuxteam.de> - 2015-11-17 22:00 +0100
                Re: how execute a script shawn wilson <ag4ve.us@gmail.com> - 2015-11-17 22:20 +0100
                Re: how execute a script tomas@tuxteam.de - 2015-11-17 23:10 +0100
                Re: how execute a script shawn wilson <ag4ve.us@gmail.com> - 2015-11-17 23:20 +0100
                Re: how execute a script shawn wilson <ag4ve.us@gmail.com> - 2015-11-17 23:30 +0100
                Re: how execute a script tomas@tuxteam.de - 2015-11-18 09:10 +0100
                Re: how execute a script John Hasler <jhasler@newsguy.com> - 2015-11-17 22:40 +0100
                Re: how execute a script Brian <ad44@cityscape.co.uk> - 2015-11-17 21:30 +0100
                Re: how execute a script Luis Felipe Tabera Alonso <taberalf@unican.es> - 2015-11-17 22:10 +0100
                Re: how execute a script Brian <ad44@cityscape.co.uk> - 2015-11-18 00:10 +0100
                Re: how execute a script Don Armstrong <don@debian.org> - 2015-11-18 01:10 +0100
                Re: how execute a script <tomas@tuxteam.de> - 2015-11-18 09:30 +0100
                Re: how execute a script David Wright <deblis@lionunicorn.co.uk> - 2015-11-18 16:00 +0100
                Re: how execute a script <tomas@tuxteam.de> - 2015-11-18 16:20 +0100
                Re: how execute a script David Wright <deblis@lionunicorn.co.uk> - 2015-11-18 16:40 +0100
              Re: how execute a script David Wright <deblis@lionunicorn.co.uk> - 2015-11-17 21:20 +0100
              Re: how execute a script <tomas@tuxteam.de> - 2015-11-17 22:00 +0100
                Re: how execute a script Brian <ad44@cityscape.co.uk> - 2015-11-18 00:10 +0100
                Re: how execute a script <tomas@tuxteam.de> - 2015-11-18 09:30 +0100
                Re: how execute a script Brian <ad44@cityscape.co.uk> - 2015-11-18 13:50 +0100
          Re: how execute a script <tomas@tuxteam.de> - 2015-11-17 19:20 +0100

csiph-web