- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
# source /opt/intel/Compiler/11.1/072/bin/ifortvars.csh intel64
ERROR: Unknown switch ''. Accepted values: ia32, intel64, ia64
Any suggestions would be much appreciated.
Thanks,
S.Gold
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
$ which source
source: shell built-in command.
$ echo $0
csh
That said, I have not tried this with Ubu 10.04. I will have such a system ready to test later today or tomorrow.
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
$ csh
The program 'csh' can be found in the following packages:
* csh
* tcsh
Try: sudo apt-get install
I do remember the older Ubuntu you mentioned. It did have some weird default shell that I'd never heard of. But that was at least 2 revisions ago.
ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since version 6.06, Ubuntu's sh points to dash, which is kind of minimalist:
$ ls -l `which sh`
lrwxrwxrwx 1 root root 4 2010-05-18 11:50 /bin/sh -> dash
If the script expects bash (or csh, ksh, zsh, etc.), then it must be explicitly stated in the first line (e.g, #!/bin/bash ).
(slightly OT: Ubuntu's developers are insanely focused on improving speed in negligible areas, and since they wanted certain scripts to run as fast as possible, they decided to switch to dash by default, breaking a lot of scripts in the process... And something similar goes for the asynchronous system startup, which is faster, but might block access to some devices in the process).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
$ ls -l `which csh`
The Intel startup scripts specify the required shells explicitly. For example, on my Linux X64 system, ifortvars.csh contains "#!/bin/csh" on the shebang line.
John, tell us how dash treats the source command, please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That one is easy! There was a bug report for that back in the day: https://launchpad.net/ubuntu/+source/dash/+bug/65046 .
dash contains only enough features to claim POSIX compliance, and it seems that source is not one of them ---the dot ( . ) should be used instead.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page