09-26-2011
ad 1: It's not changing the path because the
cd is run in the context of the shell script process, which does not influence the interactive shell process.
ad 2: See above. If you manually
source the file, its commands are run in the context of the current shell, thus the path change
ad 3: Huh?
Generally: please start using
[CODE] tags for script listings and similar.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
does anyone knows where i can find the source code any Unix commands???
THx (1 Reply)
Discussion started by: rubis450
1 Replies
2. Programming
Where can one download the UNIX source code?
Thx (9 Replies)
Discussion started by: Sharkbait
9 Replies
3. Programming
Hi all,
I want to know how ls was implemented in linux.;
How to view the source code? filename/sitename...?
thanks (1 Reply)
Discussion started by: linuxer_rh
1 Replies
4. Shell Programming and Scripting
Ive written a script that uses the source command but i get the error:
source: not found
when i enter it myself manually it works fine, is there any reason I cannot use this command in a script? (2 Replies)
Discussion started by: jonbyrne123
2 Replies
5. Post Here to Contact Site Administrators and Moderators
tha ithela na moy peite an mporo apo kapoy na vro ton pigaio kvdika toy unix
se glossa c .efxaristo. (1 Reply)
Discussion started by: matsoyka
1 Replies
6. Post Here to Contact Site Administrators and Moderators
Do you have the source code of UNIX?
If yes, can you please send it to me on my email
email address deleted
For your this help I shall be obliged to you.
With Regards
rajesh
***phone removed*** (1 Reply)
Discussion started by: rajesh_ranjan26
1 Replies
7. UNIX for Dummies Questions & Answers
Sir please tell me where can i get source code for some unix kernal and shell also. (1 Reply)
Discussion started by: VIPUL15
1 Replies
8. Shell Programming and Scripting
Hello,
I have created a script that changes directories but in order for it to work I always need to invoke a source ./script
Here is a copy of my script.. if I do not invoke "source ./script" the change directory command does not work.
Any ideas?
//
The script is pretty basic
... (1 Reply)
Discussion started by: NelsonC
1 Replies
9. Shell Programming and Scripting
Dear friends,
I am using SCO Openserver 5.0.7.
Where does the ps -ef command pick the information from? Is it stored in some file?
Also, the ps -ef command or the ps -eo args command displays truncated information. How to get the complete expanded output without truncation?
Thanks in... (8 Replies)
Discussion started by: sabu
8 Replies
10. Fedora
Hi everyone,
I know the following questions are noobish questions but I am asking them because I am confused about the basics of history behind UNIX and LINUX.
Ok onto business, my questions are-:
Was/Is UNIX ever an open source operating system ?
If UNIX was... (21 Replies)
Discussion started by: sreyan32
21 Replies
LEARN ABOUT CENTOS
platform::shell
platform::shell(n) Tcl Bundled Packages platform::shell(n)
__________________________________________________________________________________________________________________________________________________
NAME
platform::shell - System identification support code and utilities
SYNOPSIS
package require platform::shell ?1.1.4?
platform::shell::generic shell
platform::shell::identify shell
platform::shell::platform shell
_________________________________________________________________
DESCRIPTION
The platform::shell package provides several utility commands useful for the identification of the architecture of a specific Tcl shell.
This package allows the identification of the architecture of a specific Tcl shell different from the shell running the package. The only
requirement is that the other shell (identified by its path), is actually executable on the current machine.
While for most platform this means that the architecture of the interrogated shell is identical to the architecture of the running shell
this is not generally true. A counter example are all platforms which have 32 and 64 bit variants and where a 64bit system is able to run
32bit code. For these running and interrogated shell may have different 32/64 bit settings and thus different identifiers.
For applications like a code repository it is important to identify the architecture of the shell which will actually run the installed
packages, versus the architecture of the shell running the repository software.
COMMANDS
platform::shell::identify shell
This command does the same identification as platform::identify, for the specified Tcl shell, in contrast to the running shell.
platform::shell::generic shell
This command does the same identification as platform::generic, for the specified Tcl shell, in contrast to the running shell.
platform::shell::platform shell
This command returns the contents of tcl_platform(platform) for the specified Tcl shell.
KEYWORDS
operating system, cpu architecture, platform, architecture
platform::shell 1.1.4 platform::shell(n)