bash script issue
D. Hugh Redelmeier
hugh-pmF8o41NoarQT0dZR+AlfA at public.gmane.org
Mon Aug 18 15:32:32 UTC 2014
| From: Peter <plpeter2006-/E1597aS9LQAvxtiuMwx3w at public.gmane.org>
| William Muriithi <william.muriithi at ...> writes:
| > '004378858 (152).jpg'
|
| One tip: bash has POSIX conventions and one of those is: "any number that
| starts with 0 is octal". Yes, OCTAL. Therefore, AVOID using such filenames
| most of the time.
I don't remember an ordinary shell context where a pathname can be
confused with number. Can you give an example?
I think that this kind of thing is true in a variety of scripting
languages that try to figure out the programmer's intent without
explicit typing.
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list