Bird
0
0

You want to convert a Bash script using 'source' to run in Fish shell. What is the correct Fish equivalent?

hard🚀 Application Q9 of 15
Bash Scripting - Basics
You want to convert a Bash script using 'source' to run in Fish shell. What is the correct Fish equivalent?
A. filename
Binclude filename
Cimport filename
Dsource filename
Step-by-Step Solution
Solution:
  1. Step 1: Understand source command in Bash

    source runs commands from a file in the current shell.
  2. Step 2: Identify Fish equivalent

    Fish also uses source filename to run scripts in current shell.
  3. Final Answer:

    source filename -> Option D
  4. Quick Check:

    Fish uses source same as Bash = source filename [OK]
Quick Trick: Fish uses source, not dot (.) command [OK]
Common Mistakes:
MISTAKES
  • Using . filename which is Bash/sh syntax
  • Assuming import or include exist in Fish
  • Confusing Fish syntax with Bash

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Bash Scripting Quizzes