General TC > General TC Talk

shell queries...

(1/2) > >>

nitram:
Was playing around previously and maybe something messed up. Please confirm, is this correct for default TC?
tc@box:~/Desktop$ echo $0
sh
tc@box:~/Desktop$ echo $SHELL
/bin/sh

Inputing the following causes error, is this an issue with my shell configuration or a busybox limitation?
tc@box:~/Desktop$ touch seventy
tc@box:~/Desktop$ mkdir seventy
mkdir: can't create directory 'seventy': File exist

Looking at .ashrc aliases, this works:
alias ce='cd /etc/sysconfig/tcedir'

This doesn't:
alias d='dmenu_run &'

Is this 'd' alias no longer valid?

Edit: To clarify, i don't even know what dmenu_run is?

Rich:
Hi nitram

--- Quote ---Was playing around previously and maybe something messed up. Please confirm, is this correct for default TC?
tc@box:~/Desktop$ echo $0
sh
tc@box:~/Desktop$ echo $SHELL
/bin/sh
--- End quote ---
I get the same result.

--- Quote ---Inputing the following causes error, is this an issue with my shell configuration or a busybox limitation?
tc@box:~/Desktop$ touch seventy
tc@box:~/Desktop$ mkdir seventy
mkdir: can't create directory 'seventy': File exist
--- End quote ---
Neither, it's an issue with what you are trying to do. The  touch  command created a file called  seventy. You can't
create a directory of the same name in the same directory.

nitram:

--- Quote from: Rich on October 27, 2015, 09:11:22 PM ---
--- Quote ---I get the same result.

--- End quote ---
Thanks for confirming.

--- Quote ---Neither, it's an issue with what you are trying to do. The  touch  command created a file called  seventy. You can't
create a directory of the same name in the same directory.

--- End quote ---
Hmmmph. Everything in Linux is a file...even if it's a directory!
Just booted a bash distribution, same thing.
Thought my file manager was broken :)

Any enlightenment with this: alias d='dmenu_run &' ?
Doesn't appear to be a bonafide TC executable, yet it's in default .ashrc.
Should it be removed from default TC?
tc@box:~$ dmenu_run &
tc@box:~$ sh: dmenu_run: not found

--- End quote ---

Rich:
Hi nitram

--- Quote ---Any enlightenment with this: alias d='dmenu_run &' ?
Doesn't appear to be a bonafide TC executable, yet it's in default .ashrc.
Should it be removed from default TC?
tc@box:~$ dmenu_run &
tc@box:~$ sh: dmenu_run: not found
--- End quote ---
That is probably a remnant from  dmenu.tcz  or  dmenu-mod.tcz.

Misalf:
Or I gave you my .ashrc as I have script named dmenu-run, stolen from another distro and modified.

Navigation

[0] Message Index

[#] Next page

Go to full version