Why do ksh88 and ksh93 allow return lines to be closed?

I have a question.

I do not understand why, when I type:

echo "`date -d 20121231 +"%B 

It is executed without errors:

 December 

Why does it succeed on opening

`

doesn't close at the end? It works on both Korn Shell 88 and 93.

+6
source share
1 answer

It was (if deliberately) a decision made by David Korn.

There are no requirements for this behavior produced by external forces - it does not require backward compatibility; there is no reason to adhere to standards (in this respect, POSIX sh was not yet standardized when ksh88 came out).

The only person who can give a definitive answer to the justification - if any - for unspecified behavior (behavior that does not implement not violating any documented semantics) is the author of these shells.

+1
source

Source: https://habr.com/ru/post/978996/


All Articles