আমি এই নির্মাণটি স্ক্রিপ্টগুলিতে অনেক দেখেছি এবং এটি নিজেই ব্যবহার করেছি, তবে এটি আমাকে বিরক্ত করে যে ডকুমেন্টেশনে এটি খুঁজে পাচ্ছি না।
উদাহরণ:
[ -f file1 ] &&
[ -f file2 ] &&
echo "Both files exist." ||
echo "One or the other file doesn't exist."
এটি নিউলাইনগুলির আগে ব্যাকস্ল্যাশগুলির মাধ্যমেও করা যেতে পারে, যেমনটি উল্লেখ করা হয়েছে man bash:
If a \<newline> pair appears, and the backslash is not
itself quoted, the \<newline> is treated as a line continuation (that
is, it is removed from the input stream and effectively ignored).
উদাহরণ:
[ -f file1 ] && \
[ -f file2 ] && \
echo "Both files exist." || \
echo "One or the other file doesn't exist."
... তবে এটি প্রয়োজনীয় বলে মনে হচ্ছে না। উপরের প্রথম সংস্করণটি ব্যাকস্ল্যাশ ছাড়াও কাজ করে।
আমি এটি কোথায় খুঁজে পাব man bash? (এছাড়াও, এটি bashনির্দিষ্ট বা পসিক্স অনুগত?)
;,&,(এবং)।