Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #160524
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: how execute a script |
| Date | 2015-11-13 16:20 +0100 |
| Message-ID | <quoiS-84T-11@gated-at.bofh.it> (permalink) |
| References | <qun3x-77o-109@gated-at.bofh.it> <qunmO-7uR-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri 13 Nov 2015 at 14:43:39 (+0100), tomas@tuxteam.de wrote: > (as an aside: it's bad custom inherited from DOS to name shell scripts > with an .sh ending. No ending is the right thing here). So these were all DOS scripts once, were they? -rwxr-xr-x 1 root root 1248 Apr 21 2014 /etc/init.d/bootmisc.sh* -rwxr-xr-x 1 root root 3807 Apr 21 2014 /etc/init.d/checkfs.sh* -rwxr-xr-x 1 root root 1072 Apr 21 2014 /etc/init.d/checkroot-bootclean.sh* -rwxr-xr-x 1 root root 9290 Apr 17 2014 /etc/init.d/checkroot.sh* -rwxr-xr-x 1 root root 1423 Dec 31 2010 /etc/init.d/hostname.sh* -rwxr-xr-x 1 root root 3916 Oct 15 2014 /etc/init.d/hwclock.sh* -rwxr-xr-x 1 root root 677 Apr 21 2014 /etc/init.d/mountall-bootclean.sh* -rwxr-xr-x 1 root root 2138 Apr 21 2014 /etc/init.d/mountall.sh* -rwxr-xr-x 1 root root 1461 Apr 21 2014 /etc/init.d/mountdevsubfs.sh* -rwxr-xr-x 1 root root 1564 Apr 21 2014 /etc/init.d/mountkernfs.sh* -rwxr-xr-x 1 root root 685 Apr 21 2014 /etc/init.d/mountnfs-bootclean.sh* -rwxr-xr-x 1 root root 2456 Apr 21 2014 /etc/init.d/mountnfs.sh* -rwxr-xr-x 1 root root 2202 Apr 21 2014 /etc/init.d/umountnfs.sh* I name my scripts in ~/bin with an extension corresponding to their contents: .pl .py .sh etc. Where I'm working on alternative versions, I might have more than one language. Extensionless filenames are either links or binaries. What's bad about this? Or is it just snobbery: Look, we don't need extensions. Cheers, David.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how execute a script Pol Hallen <deben@fuckaround.org> - 2015-11-13 15:00 +0100
Re: how execute a script <tomas@tuxteam.de> - 2015-11-13 15:20 +0100
Re: how execute a script Pol Hallen <deben@fuckaround.org> - 2015-11-13 15:50 +0100
Re: how execute a script Lotek <lotek3@verizon.net> - 2015-11-14 01:30 +0100
Re: how execute a script Pol Hallen <deben@fuckaround.org> - 2015-11-14 11:00 +0100
Re: how execute a script shawn wilson <ag4ve.us@gmail.com> - 2015-11-15 15:20 +0100
Re: how execute a script David Wright <deblis@lionunicorn.co.uk> - 2015-11-13 16:20 +0100
Re: how execute a script Don Armstrong <don@debian.org> - 2015-11-13 18:20 +0100
Re: how execute a script David Wright <deblis@lionunicorn.co.uk> - 2015-11-13 22:20 +0100
Re: how execute a script Don Armstrong <don@debian.org> - 2015-11-13 23:10 +0100
Re: how execute a script David Wright <deblis@lionunicorn.co.uk> - 2015-11-14 00:40 +0100
Re: how execute a script <tomas@tuxteam.de> - 2015-11-14 08:40 +0100
Re: how execute a script David Wright <deblis@lionunicorn.co.uk> - 2015-11-16 05:50 +0100
Re: how execute a script <tomas@tuxteam.de> - 2015-11-16 10:50 +0100
Re: how execute a script David Wright <deblis@lionunicorn.co.uk> - 2015-11-16 19:30 +0100
Re: how execute a script <tomas@tuxteam.de> - 2015-11-17 09:20 +0100
Re: how execute a script Gene Heskett <gheskett@shentel.net> - 2015-11-13 15:20 +0100
Re: how execute a script Gene Heskett <gheskett@shentel.net> - 2015-11-13 15:30 +0100
csiph-web