You are not logged in.
I want to achieve what this looks like it might do but doesn't....
alias ./configure="linux32 ./configure"
just using configure=... works but then it is not really the same thing.
Edit: I tried this but it does not work as "./configure" is not matched.
alias configure="configure --host=i686-pc-gnu-linux --build=i686-pc-gnu-linux"
Offline
I think you might be crap outta luck Allan
fukawi2 ~ $ alias \.\/configure='ls -a'
bash: alias: `./configure': invalid alias name
fukawi2 ~ $ alias .\/configure='ls -a'
bash: alias: `./configure': invalid alias name
fukawi2 ~ $ alias ./configure='ls -a'
bash: alias: `./configure': invalid alias name
fukawi2 ~ $ alias './configure'='ls -a'
bash: alias: `./configure': invalid alias name
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Offline
In zsh it works
alias './configure'='linux32 ./configure'
but not sure how it would help......
Offline
Why don't you use an function?
function lin32config {
linux32 `pwd`/configure
}
Offline
Honestly, why not just:
alias configure="./configure <whatever>"
Do you want to be able to tab complete the ./configure and have it do something else? Aliases'll be tab completed as well, and better yet, you could name it something like:
alias cfg=foo
Such that you never have to even worry about tab completing.
Offline
I could just use configure="linux32 ./configure" (and that is what my current alias is), but after years of typing ./configure, I would prefer it to be a bit more seamless. This is the only annoyance left for me while running an x86_64 kernel on the i686 userspace.
Offline
You could use a macro, but readline's is recursive, and screen's times out fast, and neither will display what you write, so any ./ will become awkward.
For screen it's bindkey "./c" stuff "linux32 ./c"
Offline