PLEASE NOTE: this server, secure.csse.uwa.edu.au, will be unavailable on WEDNESDAY 7th December, from 1pm until 4pm.
Web-based programs, such as csmarks, cssubmit, and the help fora, will all be unavailable.
  It's UWAweek 49

help2003/help4407

This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 564 articles.
Currently 4 other people reading this forum.


 UWA week 14 (1st semester, week 6) ↓
SVG not supported

Login to reply

👍?
helpful
6:24pm Tue 5th Apr, Ryan B.

"Ashley Ford" < @student.uwa.edu.au> wrote:

I was just looking to confirm if it matters whether we follow the labs or the lectures for things like:

Using #!/usr/bin/env bash instead of #!/bin/bash

and

Using 1>&2 echo or echo "" > /dev/stderr

Thank you

Hi Ashley,

I'm going to be "that teacher" and ask: have you looked into what the differences are between the examples you have given (if any)?

If there are differences between the two, it may very well matter! However, it may also be contextual as to whether it does matter (or not). The best way to evaluate if (potential) differences matter is to know what the differences are, and work accordingly. :)

(Removes "that teacher" hat, puts on "fellow postgrad" hat): This may help get the ball rolling for your second example: https://unix.stackexchange.com/questions/274042/sending-output-to-dev-stderr-vs-2.

Hope this helps!

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy