> You must have done something wrong: I have not done anything. The system is the default installation.
> You'd better put double quotes around your command substitutions rather > than simple quotes around fixed, non-special strings: "$(date '+%d')" Ok, but why the command: mkdir $(date +'%d') after the digit 7 works fine? If I insert the date manually then it works fine - example: # date 201307071111 but no by default. Why? thanks ------------------------------------------------------------------------ > "Max Power" <[email protected]> writes: > >> Hi, > > Hi. Please stop using all-caps mail subjects. > >> o.s.: OpenBSD 5.3/amd64 >> >> If I create a directory with the command: mkdir $(date +'%d') > > You'd better put double quotes around your command substitutions rather > than simple quotes around fixed, non-special strings: "$(date '+%d')" > >> why this is the result: 1, 2, 3, 4, 5, 6, 7, 08, 09, 10, etc. >> Why the '0' [zero] appears only ahead the digit 8 and 9..? > > You must have done something wrong: > > $ date -j +%d 20137010000 > 01 > $ > > See strftime(3). > > -- > Jérémie Courrèges-Anglas > PGP Key fingerprint: 61DB D9A0 00A4 67CF 2A90 8961 6191 8FBF 06A1 1494

